Template Function Karana::Core::deprecatedWrapper#
Defined in File pybind11Utils.h
Function Documentation#
-
template<typename T>
auto Karana::Core::deprecatedWrapper(std::string_view name, std::string_view date, std::string_view msg, const std::function<T> &func)# This can be used to wrap any function and add a deprecation message.
- Template Parameters:
T – The type of function called.
- Parameters:
name – The name of the thing that is deprecated.
date – The date the deprecated thing will be removed.
msg – The msg to send to the user. This should tell them how to update their code.
func – The function to wrap with the deprecation message.
- Returns:
The wrapped function.