Primary template optional<> does not handle references

This commit is contained in:
Andrzej Krzemienski
2016-02-13 00:46:41 +01:00
parent e24ab26874
commit b5b8414c06
10 changed files with 1235 additions and 193 deletions

View File

@ -209,13 +209,13 @@ namespace boost {
//
template <> struct optional_swap_should_use_default_constructor<
optional_swap_test::class_whose_default_ctor_should_be_used> : mpl::true_ {} ;
optional_swap_test::class_whose_default_ctor_should_be_used> : true_type {} ;
template <> struct optional_swap_should_use_default_constructor<
optional_swap_test::class_whose_default_ctor_should_not_be_used> : mpl::false_ {} ;
optional_swap_test::class_whose_default_ctor_should_not_be_used> : false_type {} ;
template <class T> struct optional_swap_should_use_default_constructor<
optional_swap_test::template_whose_default_ctor_should_be_used<T> > : mpl::true_ {} ;
optional_swap_test::template_whose_default_ctor_should_be_used<T> > : true_type {} ;
//