Skip to content

Commit

Permalink
Update fake_object.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
apolukhin authored Nov 26, 2023
1 parent 8597b6c commit 3fe3893
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/boost/pfr/detail/fake_object.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ extern const T passed_type_has_no_external_linkage;

// For returning non default constructible types, it's exclusively used in member name retrieval.
//
// Not std::declval nor boost::pfr::detail::unsafe_declval are able to be used there
// so we introduced it, but it have one limitation - only types with external linkage.
// Neither std::declval nor boost::pfr::detail::unsafe_declval are usable there.
// Limitation - T should have external linkage.
template <class T>
constexpr const T& fake_object() noexcept {
return passed_type_has_no_external_linkage<T>;
Expand Down

0 comments on commit 3fe3893

Please sign in to comment.