Skip to content

Commit

Permalink
Fix missing typename/template error with Clang
Browse files Browse the repository at this point in the history
  • Loading branch information
ecorm committed Feb 9, 2022
1 parent 310278b commit 435a1cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
7 changes: 1 addition & 6 deletions cppwamp/include/cppwamp/internal/options.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,7 @@ Variant Options<D>::optionByKey(const String& key) const
//------------------------------------------------------------------------------
template <typename D>
template <typename T>
#ifdef CPPWAMP_FOR_DOXYGEN
ValueTypeOf<T>
#else
Options<D>::ValueTypeOf<T>
#endif
Options<D>::optionOr(
ValueTypeOf<T> Options<D>::optionOr(
const String& key, /**< The key to search under. */
T&& fallback /**< The fallback value to return if the key was
not found. */
Expand Down
5 changes: 1 addition & 4 deletions cppwamp/include/cppwamp/options.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#ifndef CPPWAMP_OPTIONS_HPP
#define CPPWAMP_OPTIONS_HPP

#include "traits.hpp"
#include "variant.hpp"
#include "./internal/passkey.hpp"

Expand All @@ -26,10 +27,6 @@ template <typename TDerived>
class Options
{
public:
/** Metafunction used to obtain the plain value type of a parameter
passed by universal reference. */
template <typename T> using ValueTypeOf = typename std::decay<T>::type;

/** Adds an option. */
TDerived& withOption(String key, Variant value);

Expand Down

0 comments on commit 435a1cf

Please sign in to comment.