diff --git a/examples/constexpr14_sort_check.cpp b/examples/constexpr14_sort_check.cpp index 452b98a..54a8435 100644 --- a/examples/constexpr14_sort_check.cpp +++ b/examples/constexpr14_sort_check.cpp @@ -1,4 +1,4 @@ -// Copyright 2013-2016 Antony Polukhin +// Copyright 2013-2017 Antony Polukhin // Distributed under the Boost Software License, Version 1.0. // (See the accompanying file LICENSE_1_0.txt diff --git a/examples/registry.cpp b/examples/registry.cpp index 4f1eaa8..64a97ca 100644 --- a/examples/registry.cpp +++ b/examples/registry.cpp @@ -1,4 +1,4 @@ -// Copyright 2013-2015 Antony Polukhin +// Copyright 2013-2017 Antony Polukhin // Distributed under the Boost Software License, Version 1.0. // (See the accompanying file LICENSE_1_0.txt diff --git a/examples/user_defined_typeinfo.hpp b/examples/user_defined_typeinfo.hpp index dc2caab..4bd7ff0 100644 --- a/examples/user_defined_typeinfo.hpp +++ b/examples/user_defined_typeinfo.hpp @@ -47,11 +47,20 @@ namespace my_namespace { namespace detail { template <> struct typenum{ enum {value = 3}; }; template <> struct typenum{ enum {value = 4}; }; +#ifdef BOOST_MSVC +#pragma warning(push) +#pragma warning(disable: 4510 4512 4610) // non-copyable non-constructable type +#endif + // my_typeinfo structure is used to save type number struct my_typeinfo { const char* const type_; }; +#ifdef BOOST_MSVC +#pragma warning(pop) +#endif + const my_typeinfo infos[5] = { {"void"}, {"my_class"}, {"my_struct"}, {"my_classes"}, {"my_string"} };