introspection: add filesystem::path type_name specialisation

This commit is contained in:
Danny Robson 2017-01-31 20:30:16 +11:00
parent 46873e0931
commit cc4f91f393
2 changed files with 5 additions and 0 deletions

View File

@ -38,3 +38,5 @@ constexpr const char ::util::detail::type_name_f64::value[];
constexpr const char ::util::detail::type_name_string::value[];
constexpr const char ::util::detail::type_name_cstring::value[];
constexpr const char ::util::detail::type_name_const_cstring::value[];
constexpr const char ::util::detail::type_name_path::value[];

View File

@ -24,6 +24,8 @@
#include <cstdint>
#include <string>
#include <tuple>
#include <experimental/filesystem>
namespace util {
// XXX: clang-3.9/clang-4.0 will not instantiate static constexpr member
@ -62,6 +64,7 @@ namespace util {
CLANG_WORKAROUND(const char*, const_cstring, "cstring")
CLANG_WORKAROUND(char*, cstring, "cstring")
CLANG_WORKAROUND(std::string, string, "string")
CLANG_WORKAROUND(std::experimental::filesystem::path, path, "path");
#undef CLANG_WORKAROUND