Fix compilation under VS2017 (nw)

default_semantics is used by apply so need to be public
This commit is contained in:
Miodrag Milanovic 2016-11-16 20:59:35 +01:00
parent 8e61a7d3d3
commit d5bf30edb8
2 changed files with 2 additions and 2 deletions

View File

@ -592,10 +592,10 @@ private:
{ static constexpr bool value = std::is_integral<U>::value && std::is_signed<U>::value; };
template <typename U> struct unsigned_integer_semantics
{ static constexpr bool value = std::is_integral<U>::value && !std::is_signed<U>::value; };
public:
template <typename U> struct default_semantics
{ static constexpr bool value = !signed_integer_semantics<U>::value && !unsigned_integer_semantics<U>::value; };
public:
template <typename U>
static void apply(std::enable_if_t<signed_integer_semantics<U>::value, Stream> &str, format_flags const &flags, U const &value)
{

View File

@ -10,7 +10,7 @@
#ifndef __EIVC__
#define __EIVC__
#include <intrin.h>
#pragma intrinsic(_BitScanReverse)