2
0
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:
Dmitry Arkhipov
2022-11-16 22:05:16 +03:00
parent e979855f46
commit f993635f4d
2 changed files with 7 additions and 7 deletions

View File

@@ -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>,