mirror of
https://github.com/boostorg/json.git
synced 2026-02-13 12:32:12 +00:00
fix pedantic warnings
This commit is contained in:
@@ -85,14 +85,14 @@ template<class T>
|
||||
using has_size_member_helper
|
||||
= std::is_convertible<decltype(std::declval<T&>().size()), std::size_t>;
|
||||
template<class T>
|
||||
using has_size_member = mp11::mp_valid_and_true<has_size_member_helper, T>;;
|
||||
using has_size_member = mp11::mp_valid_and_true<has_size_member_helper, T>;
|
||||
template<class T>
|
||||
using has_free_size_helper
|
||||
= std::is_convertible<
|
||||
decltype(size(std::declval<T const&>())),
|
||||
std::size_t>;
|
||||
template<class T>
|
||||
using has_free_size = mp11::mp_valid_and_true<has_free_size_helper, T>;;
|
||||
using has_free_size = mp11::mp_valid_and_true<has_free_size_helper, T>;
|
||||
template<class T>
|
||||
using size_implementation = mp11::mp_cond<
|
||||
has_size_member<T>, mp11::mp_int<3>,
|
||||
|
||||
Reference in New Issue
Block a user