diff --git a/cppwamp/include/cppwamp/internal/options.ipp b/cppwamp/include/cppwamp/internal/options.ipp index ec5c88d9..beb7bdc0 100644 --- a/cppwamp/include/cppwamp/internal/options.ipp +++ b/cppwamp/include/cppwamp/internal/options.ipp @@ -58,12 +58,7 @@ Variant Options::optionByKey(const String& key) const //------------------------------------------------------------------------------ template template -#ifdef CPPWAMP_FOR_DOXYGEN -ValueTypeOf -#else -Options::ValueTypeOf -#endif -Options::optionOr( +ValueTypeOf Options::optionOr( const String& key, /**< The key to search under. */ T&& fallback /**< The fallback value to return if the key was not found. */ diff --git a/cppwamp/include/cppwamp/options.hpp b/cppwamp/include/cppwamp/options.hpp index 9deb2a6f..8f5c5ca1 100644 --- a/cppwamp/include/cppwamp/options.hpp +++ b/cppwamp/include/cppwamp/options.hpp @@ -8,6 +8,7 @@ #ifndef CPPWAMP_OPTIONS_HPP #define CPPWAMP_OPTIONS_HPP +#include "traits.hpp" #include "variant.hpp" #include "./internal/passkey.hpp" @@ -26,10 +27,6 @@ template class Options { public: - /** Metafunction used to obtain the plain value type of a parameter - passed by universal reference. */ - template using ValueTypeOf = typename std::decay::type; - /** Adds an option. */ TDerived& withOption(String key, Variant value);