Skip to content

Commit

Permalink
fix compiler crash in vs2015, fix std::size_t define
Browse files Browse the repository at this point in the history
  • Loading branch information
caseymcc committed Aug 6, 2018
1 parent 2c7ab7d commit be42f9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/ctti/detail/hash.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define CTTI_DETAIL_HASH_HPP

#include <cstdint>
#include <cstddef>

namespace ctti
{
Expand Down
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 template specialization cannot match the top specialization)
>
{};

Expand Down

0 comments on commit be42f9d

Please sign in to comment.