Workaround a bug in MSVC

This commit is contained in:
Victor Zverovich
2018-02-07 06:31:42 -08:00
parent 3810d7e4d4
commit 1e19ae8348

View File

@ -861,8 +861,12 @@ using wcontext = buffer_context_t<wchar_t>;
namespace internal { namespace internal {
template <typename Context, typename T> template <typename Context, typename T>
struct get_type { class get_type {
using value_type = decltype(make_value<Context>(std::declval<T>())); private:
static const T& val();
public:
using value_type = decltype(make_value<Context>(val()));
static const type value = value_type::type_tag; static const type value = value_type::type_tag;
}; };