diff --git a/NOTICE b/NOTICE index 9231e0d4b..a8db0da71 100644 --- a/NOTICE +++ b/NOTICE @@ -28,5 +28,5 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at ) =================================================================== -The reflection of a struct and data format borrow various ideas from zpp_bits and msgpack. +The reflection of a struct and data format borrow various ideas from zpp_bits, reflect-cpp and msgpack. coro_rpc borrow various ideas from rest_rpc. diff --git a/include/ylt/reflection/member_names.hpp b/include/ylt/reflection/member_names.hpp index 97e5524b2..de106f03e 100644 --- a/include/ylt/reflection/member_names.hpp +++ b/include/ylt/reflection/member_names.hpp @@ -41,7 +41,7 @@ inline constexpr std::string_view get_member_name() { auto split = func_name.substr(0, func_name.rfind(")}")); return split.substr(split.find_last_of(":") + 1); #elif defined(_MSC_VER) - auto split = func_name.substr(0, func_name.size() - 7); + auto split = func_name.substr(0, func_name.rfind("}>")); return split.substr(split.rfind("->") + 2); #else static_assert(false, diff --git a/include/ylt/reflection/member_ptr.hpp b/include/ylt/reflection/member_ptr.hpp index 9208fa717..f0e587b20 100644 --- a/include/ylt/reflection/member_ptr.hpp +++ b/include/ylt/reflection/member_ptr.hpp @@ -42,7 +42,7 @@ struct wrapper { }; template -inline consteval T& get_fake_object() noexcept { +inline constexpr T& get_fake_object() noexcept { return wrapper::value; }