2
0
mirror of https://github.com/boostorg/gil.git synced 2026-02-27 05:02:19 +00:00

Replace some uses of boost::is_same with std::is_same (#225)

Those are places boost::is_same can be replaced in non-intrusive way.
Remaining are types derived from boost::is_same, where the replacing
would affect all their uses - effectively switching from boost::true_/false_ types
to std::true_type and std::false_type.
Such change needs to come along with Boost.MPL to MP11 migration.
This commit is contained in:
Mateusz Łoskot
2019-01-27 10:54:05 +00:00
committed by GitHub
parent afcdeb04cd
commit 45ca507ca3
10 changed files with 54 additions and 27 deletions

View File

@@ -106,10 +106,11 @@ struct do_basic_test : public C1, public C2
// Test swap if both are mutable and if their value type is the same
// (We know the second one is mutable)
using p1_ref = typename boost::add_reference<typename C1::type>::type;
test_swap(
boost::mpl::bool_<
test_swap(boost::mpl::bool_
<
pixel_reference_is_mutable<p1_ref>::value &&
boost::is_same<pixel1_value_t,pixel2_value_t>::value> ());
std::is_same<pixel1_value_t,pixel2_value_t>::value
>());
}
void test_swap(boost::mpl::false_) {}