1
0
mirror of https://github.com/nlohmann/json synced 2024-11-26 22:00:07 +00:00

add a note to maintainers in type_traits.hpp

This commit is contained in:
Théo DELRIEU 2018-10-17 12:03:10 +02:00
parent 45c8af2c46
commit a946dfc19c
No known key found for this signature in database
GPG Key ID: A5A505438C20539A
2 changed files with 18 additions and 0 deletions

View File

@ -26,6 +26,15 @@ namespace detail
// helpers // // helpers //
///////////// /////////////
// Note to maintainers:
//
// Every trait in this file expects a non CV-qualified type.
// The only exceptions are in the 'aliases for detected' section
// (i.e. those of the form: decltype(T::member_function(std::declval<T>())))
//
// In this case, T has to be properly CV-qualified to constraint the function arguments
// (e.g. to_json(BasicJsonType&, const T&))
template<typename> struct is_basic_json : std::false_type {}; template<typename> struct is_basic_json : std::false_type {};
NLOHMANN_BASIC_JSON_TPL_DECLARATION NLOHMANN_BASIC_JSON_TPL_DECLARATION

View File

@ -386,6 +386,15 @@ namespace detail
// helpers // // helpers //
///////////// /////////////
// Note to maintainers:
//
// Every trait in this file expects a non CV-qualified type.
// The only exceptions are in the 'aliases for detected' section
// (i.e. those of the form: decltype(T::member_function(std::declval<T>())))
//
// In this case, T has to be properly CV-qualified to constraint the function arguments
// (e.g. to_json(BasicJsonType&, const T&))
template<typename> struct is_basic_json : std::false_type {}; template<typename> struct is_basic_json : std::false_type {};
NLOHMANN_BASIC_JSON_TPL_DECLARATION NLOHMANN_BASIC_JSON_TPL_DECLARATION