Skip to content

Commit

Permalink
for msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Jul 12, 2024
1 parent 014d820 commit c2c9e87
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <http://www.boost.org/LICENSE_1_0.txt>)

===================================================================
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.
2 changes: 1 addition & 1 deletion include/ylt/reflection/member_names.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion include/ylt/reflection/member_ptr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ struct wrapper {
};

template <class T>
inline consteval T& get_fake_object() noexcept {
inline constexpr T& get_fake_object() noexcept {
return wrapper<T>::value;
}

Expand Down

0 comments on commit c2c9e87

Please sign in to comment.