Skip to content

Commit

Permalink
fix compiler crash in vs2015
Browse files Browse the repository at this point in the history
  • Loading branch information
caseymcc committed Aug 6, 2018
1 parent 2c7ab7d commit 4383612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ctti/nameof.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ template<typename Enum>
struct TypeNameLength<Enum, typename std::enable_if<std::is_enum<Enum>::value>::type> :
std::integral_constant<
std::size_t,
ctti::nameof<Enum>().length()
ctti::nameof<Enum>().size() //fix compiler crash in VS2015 (this temnplate specialization cannot match the top specialization)
>
{};

Expand Down

0 comments on commit 4383612

Please sign in to comment.