From 860c454c93fc2e4f78e70cda9a8d0a3f79199553 Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Fri, 1 Nov 2013 11:00:04 +0400 Subject: [PATCH] Fixed MSVC warnings and added some notes --- boost/type_index/type_info.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/boost/type_index/type_info.hpp b/boost/type_index/type_info.hpp index 895faac..f72ffcf 100644 --- a/boost/type_index/type_info.hpp +++ b/boost/type_index/type_info.hpp @@ -85,7 +85,17 @@ namespace detail { /// * has a name_demangled() function for getting human-readable type names /// * name() function always noexcept and returns simple mangled name as character a character array /// * contains workarounds for some compiler issues +/// +/// boost::type_info is not copyable and is not default constructible. Use boost::type_id* functions +/// to get const references to instances of boost::type_info objects. class type_info: public detail::stl_type_info { +#ifndef BOOST_NO_DELETED_FUNCTIONS + type_info() = delete; + type_info(const type_info&) = delete; +#else + type_info(); + type_info(const type_info&); +#endif public: typedef detail::stl_type_info stl_type_info;