]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use override in the bundled boost where possible
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 9 May 2018 17:53:41 +0000 (19:53 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 9 May 2018 20:10:41 +0000 (22:10 +0200)
53 files changed:
bundled/boost-1.62.0/include/boost/any.hpp
bundled/boost-1.62.0/include/boost/archive/archive_exception.hpp
bundled/boost-1.62.0/include/boost/archive/basic_text_iarchive.hpp
bundled/boost-1.62.0/include/boost/archive/basic_text_oarchive.hpp
bundled/boost-1.62.0/include/boost/archive/basic_xml_iarchive.hpp
bundled/boost-1.62.0/include/boost/archive/basic_xml_oarchive.hpp
bundled/boost-1.62.0/include/boost/archive/codecvt_null.hpp
bundled/boost-1.62.0/include/boost/archive/detail/common_iarchive.hpp
bundled/boost-1.62.0/include/boost/archive/detail/common_oarchive.hpp
bundled/boost-1.62.0/include/boost/archive/detail/iserializer.hpp
bundled/boost-1.62.0/include/boost/archive/detail/oserializer.hpp
bundled/boost-1.62.0/include/boost/archive/iterators/dataflow_exception.hpp
bundled/boost-1.62.0/include/boost/archive/polymorphic_iarchive.hpp
bundled/boost-1.62.0/include/boost/archive/polymorphic_oarchive.hpp
bundled/boost-1.62.0/include/boost/archive/text_iarchive.hpp
bundled/boost-1.62.0/include/boost/archive/text_oarchive.hpp
bundled/boost-1.62.0/include/boost/archive/text_wiarchive.hpp
bundled/boost-1.62.0/include/boost/archive/text_woarchive.hpp
bundled/boost-1.62.0/include/boost/archive/xml_archive_exception.hpp
bundled/boost-1.62.0/include/boost/archive/xml_iarchive.hpp
bundled/boost-1.62.0/include/boost/archive/xml_oarchive.hpp
bundled/boost-1.62.0/include/boost/archive/xml_wiarchive.hpp
bundled/boost-1.62.0/include/boost/archive/xml_woarchive.hpp
bundled/boost-1.62.0/include/boost/detail/utf8_codecvt_facet.hpp
bundled/boost-1.62.0/include/boost/format/exceptions.hpp
bundled/boost-1.62.0/include/boost/iostreams/detail/streambuf/indirect_streambuf.hpp
bundled/boost-1.62.0/include/boost/iostreams/filtering_stream.hpp
bundled/boost-1.62.0/include/boost/iostreams/stream_buffer.hpp
bundled/boost-1.62.0/include/boost/lexical_cast/bad_lexical_cast.hpp
bundled/boost-1.62.0/include/boost/numeric/conversion/converter_policies.hpp
bundled/boost-1.62.0/include/boost/property_tree/detail/file_parser_error.hpp
bundled/boost-1.62.0/include/boost/property_tree/detail/rapidxml.hpp
bundled/boost-1.62.0/include/boost/property_tree/exceptions.hpp
bundled/boost-1.62.0/include/boost/serialization/extended_type_info_no_rtti.hpp
bundled/boost-1.62.0/include/boost/serialization/extended_type_info_typeid.hpp
bundled/boost-1.62.0/include/boost/serialization/singleton.hpp
bundled/boost-1.62.0/include/boost/serialization/void_cast.hpp
bundled/boost-1.62.0/include/boost/signals2/connection.hpp
bundled/boost-1.62.0/include/boost/signals2/detail/foreign_ptr.hpp
bundled/boost-1.62.0/include/boost/signals2/detail/signal_template.hpp
bundled/boost-1.62.0/include/boost/signals2/expired_slot.hpp
bundled/boost-1.62.0/include/boost/signals2/last_value.hpp
bundled/boost-1.62.0/include/boost/smart_ptr/bad_weak_ptr.hpp
bundled/boost-1.62.0/include/boost/smart_ptr/detail/array_count_impl.hpp
bundled/boost-1.62.0/include/boost/smart_ptr/detail/sp_counted_impl.hpp
bundled/boost-1.62.0/include/boost/spirit/home/classic/core/non_terminal/impl/rule.ipp
bundled/boost-1.62.0/include/boost/system/detail/error_code.ipp
bundled/boost-1.62.0/include/boost/variant/bad_visit.hpp
bundled/boost-1.62.0/include/boost/variant/get.hpp
bundled/boost-1.62.0/libs/serialization/src/basic_oarchive.cpp
bundled/boost-1.62.0/libs/serialization/src/extended_type_info.cpp
bundled/boost-1.62.0/libs/serialization/src/extended_type_info_typeid.cpp
bundled/boost-1.62.0/libs/serialization/src/void_cast.cpp

index 437de2c02316010d8e7be56597ca97da75091432..38c665a96c3d467ad7d742edb72a82ab3eda2b5f 100644 (file)
@@ -182,12 +182,12 @@ namespace boost
 #endif
         public: // queries
 
-            virtual const boost::typeindex::type_info& type() const BOOST_NOEXCEPT
+            virtual const boost::typeindex::type_info& type() const BOOST_NOEXCEPT override
             {
                 return boost::typeindex::type_id<ValueType>().type_info();
             }
 
-            virtual placeholder * clone() const
+            virtual placeholder * clone() const override
             {
                 return new holder(held);
             }
@@ -233,7 +233,7 @@ namespace boost
 #endif
     {
     public:
-        virtual const char * what() const BOOST_NOEXCEPT_OR_NOTHROW
+        virtual const char * what() const BOOST_NOEXCEPT_OR_NOTHROW override
         {
             return "boost::bad_any_cast: "
                    "failed conversion using boost::any_cast";
index fabcdb5fa71462b60a1532ceff7a4cb268059fa5..ce69e998912fc64b02c3ea3098c4d4c3c406d435 100644 (file)
@@ -88,8 +88,8 @@ public:
         const char * e2 = NULL
     ) BOOST_NOEXCEPT;
     BOOST_ARCHIVE_DECL archive_exception(archive_exception const &) BOOST_NOEXCEPT ;
-    virtual BOOST_ARCHIVE_DECL ~archive_exception() BOOST_NOEXCEPT_OR_NOTHROW ;
-    virtual BOOST_ARCHIVE_DECL const char * what() const BOOST_NOEXCEPT_OR_NOTHROW ;
+    virtual BOOST_ARCHIVE_DECL ~archive_exception() BOOST_NOEXCEPT_OR_NOTHROW override ;
+    virtual BOOST_ARCHIVE_DECL const char * what() const BOOST_NOEXCEPT_OR_NOTHROW override ;
 };
 
 }// namespace archive
index 583041d8b491667f5644c54b386d7c64da1140d8..936e3ecd13b1a78f8c59d0d5af8cd159d530666f 100644 (file)
@@ -81,7 +81,7 @@ protected:
     basic_text_iarchive(unsigned int flags) : 
         detail::common_iarchive<Archive>(flags)
     {}
-    ~basic_text_iarchive(){}
+    ~basic_text_iarchive() override{}
 };
 
 } // namespace archive
index 6f7f8fb167d4615137c3abbe43ad09b6cde36402..454a20d07ab0c83464357593edc18e90f7e7fb58 100644 (file)
@@ -104,7 +104,7 @@ protected:
         detail::common_oarchive<Archive>(flags),
         delimiter(none)
     {}
-    ~basic_text_oarchive(){}
+    ~basic_text_oarchive() override{}
 };
 
 } // namespace archive
index a882df5615030a1367aafaa78a2bbad26cd6f794..5f46f3c8717fca9a8d1ea488e1c356c7f7b8ca09 100644 (file)
@@ -105,7 +105,7 @@ protected:
     BOOST_ARCHIVE_OR_WARCHIVE_DECL
     basic_xml_iarchive(unsigned int flags);
     BOOST_ARCHIVE_OR_WARCHIVE_DECL
-    ~basic_xml_iarchive();
+    ~basic_xml_iarchive() override;
 };
 
 } // namespace archive
index 107fca4ec6526a20acd17df6511c0ab76b8adeff..740a7ecfee777c3d0f66b6d5c0a5e5a07791dccf 100644 (file)
@@ -123,7 +123,7 @@ protected:
     BOOST_ARCHIVE_OR_WARCHIVE_DECL
     basic_xml_oarchive(unsigned int flags);
     BOOST_ARCHIVE_OR_WARCHIVE_DECL
-    ~basic_xml_oarchive();
+    ~basic_xml_oarchive() override;
 };
 
 } // namespace archive
index 9cc9e5729d5c8c6b73a92f7f496df0f57985b207..f27e1b467bf63c0207b8e7da604fa5c41c187efe 100644 (file)
@@ -49,14 +49,14 @@ class codecvt_null;
 template<>
 class codecvt_null<char> : public std::codecvt<char, char, std::mbstate_t>
 {
-    virtual bool do_always_noconv() const throw() {
+    virtual bool do_always_noconv() const throw() override {
         return true;
     }
 public:
     explicit codecvt_null(std::size_t no_locale_manage = 0) :
         std::codecvt<char, char, std::mbstate_t>(no_locale_manage)
     {}
-    virtual ~codecvt_null(){};
+    virtual ~codecvt_null() override{};
 };
 
 template<>
@@ -71,7 +71,7 @@ class BOOST_SYMBOL_VISIBLE codecvt_null<wchar_t> : public std::codecvt<wchar_t,
         char * first2,
         char * last2,
         char * & next2
-    ) const;
+    ) const override;
     virtual BOOST_WARCHIVE_DECL std::codecvt_base::result
     do_in(
         std::mbstate_t & state,
@@ -81,18 +81,18 @@ class BOOST_SYMBOL_VISIBLE codecvt_null<wchar_t> : public std::codecvt<wchar_t,
         wchar_t * first2,
         wchar_t * last2,
         wchar_t * & next2
-    ) const;
-    virtual int do_encoding( ) const throw( ){
+    ) const override;
+    virtual int do_encoding( ) const throw( ) override{
         return sizeof(wchar_t) / sizeof(char);
     }
-    virtual int do_max_length( ) const throw( ){
+    virtual int do_max_length( ) const throw( ) override{
         return do_encoding();
     }
 public:
     explicit codecvt_null(std::size_t no_locale_manage = 0) :
         std::codecvt<wchar_t, char, std::mbstate_t>(no_locale_manage)
     {}
-    virtual ~codecvt_null(){};
+    virtual ~codecvt_null() override{};
 };
 
 } // namespace archive
index 82304f1e5acdf93148a692c0b0d77bca378a235d..43e86e74ebaa4fea3acc4ead436c99dc860888af 100644 (file)
@@ -41,22 +41,22 @@ class BOOST_SYMBOL_VISIBLE common_iarchive :
 {
     friend class interface_iarchive<Archive>;
 private:
-    virtual void vload(version_type & t){
+    virtual void vload(version_type & t) override{
         * this->This() >> t; 
     }
-    virtual void vload(object_id_type & t){
+    virtual void vload(object_id_type & t) override{
         * this->This() >> t;
     }
-    virtual void vload(class_id_type & t){
+    virtual void vload(class_id_type & t) override{
         * this->This() >> t;
     }
-    virtual void vload(class_id_optional_type & t){
+    virtual void vload(class_id_optional_type & t) override{
         * this->This() >> t;
     }
-    virtual void vload(tracking_type & t){
+    virtual void vload(tracking_type & t) override{
         * this->This() >> t;
     }
-    virtual void vload(class_name_type &s){
+    virtual void vload(class_name_type &s) override{
         * this->This() >> s;
     }
 protected:
index ee42bbe597698cacfa7afc21dba8f03fe27df76e..5df48e91c8cef6bbe22d6967fd1e6e4d0dea5c03 100644 (file)
@@ -39,28 +39,28 @@ class BOOST_SYMBOL_VISIBLE common_oarchive :
 {
     friend class interface_oarchive<Archive>;
 private:
-    virtual void vsave(const version_type t){
+    virtual void vsave(const version_type t) override{
         * this->This() << t;
     }
-    virtual void vsave(const object_id_type t){
+    virtual void vsave(const object_id_type t) override{
         * this->This() << t;
     }
-    virtual void vsave(const object_reference_type t){
+    virtual void vsave(const object_reference_type t) override{
         * this->This() << t;
     }
-    virtual void vsave(const class_id_type t){
+    virtual void vsave(const class_id_type t) override{
         * this->This() << t;
     }
-    virtual void vsave(const class_id_reference_type t){
+    virtual void vsave(const class_id_reference_type t) override{
         * this->This() << t;
     }
-    virtual void vsave(const class_id_optional_type t){
+    virtual void vsave(const class_id_optional_type t) override{
         * this->This() << t;
     }
-    virtual void vsave(const class_name_type & t){
+    virtual void vsave(const class_name_type & t) override{
         * this->This() << t;
     }
-    virtual void vsave(const tracking_type t){
+    virtual void vsave(const tracking_type t) override{
         * this->This() << t;
     }
 protected:
index bf230a813bb56be8d3050cb1b1d5726c11e95189..f0bf622af602e2f99e3b4622a476d1400b457f08 100644 (file)
@@ -116,7 +116,7 @@ template<class Archive, class T>
 class iserializer : public basic_iserializer
 {
 private:
-    virtual void destroy(/*const*/ void *address) const {
+    virtual void destroy(/*const*/ void *address) const override {
         boost::serialization::access::destroy(static_cast<T *>(address));
     }
 protected:
@@ -134,25 +134,25 @@ public:
         basic_iarchive & ar,
         void *x, 
         const unsigned int file_version
-    ) const BOOST_USED;
-    virtual bool class_info() const {
+    ) const override BOOST_USED;
+    virtual bool class_info() const override {
         return boost::serialization::implementation_level< T >::value 
             >= boost::serialization::object_class_info;
     }
-    virtual bool tracking(const unsigned int /* flags */) const {
+    virtual bool tracking(const unsigned int /* flags */) const override {
         return boost::serialization::tracking_level< T >::value 
                 == boost::serialization::track_always
             || ( boost::serialization::tracking_level< T >::value 
                 == boost::serialization::track_selectively
                 && serialized_as_pointer());
     }
-    virtual version_type version() const {
+    virtual version_type version() const override {
         return version_type(::boost::serialization::version< T >::value);
     }
-    virtual bool is_polymorphic() const {
+    virtual bool is_polymorphic() const override {
         return boost::is_polymorphic< T >::value;
     }
-    virtual ~iserializer(){};
+    virtual ~iserializer() override{};
 };
 
 #ifdef BOOST_MSVC
@@ -287,13 +287,13 @@ class pointer_iserializer :
     public basic_pointer_iserializer
 {
 private:
-    virtual void * heap_allocation() const {
+    virtual void * heap_allocation() const override {
         detail::heap_allocation<T> h;
         T * t = h.get();
         h.release();
         return t;
     }
-    virtual const basic_iserializer & get_basic_serializer() const {
+    virtual const basic_iserializer & get_basic_serializer() const override {
         return boost::serialization::singleton<
             iserializer<Archive, T>
         >::get_const_instance();
@@ -302,11 +302,11 @@ private:
         basic_iarchive & ar, 
         void * x,
         const unsigned int file_version
-    ) const BOOST_USED;
+    ) const override BOOST_USED;
 protected:
     // this should alway be a singleton so make the constructor protected
     pointer_iserializer();
-    ~pointer_iserializer();
+    ~pointer_iserializer() override;
 };
 
 #ifdef BOOST_MSVC
index 0f2e733c5812afba0e2a26c52667e6e4cc7323a7..57cbb4035b48931bce5a9bb0838cc8ab2807ec2c 100644 (file)
@@ -115,23 +115,23 @@ public:
     virtual BOOST_DLLEXPORT void save_object_data(
         basic_oarchive & ar,    
         const void *x
-    ) const BOOST_USED;
-    virtual bool class_info() const {
+    ) const override BOOST_USED;
+    virtual bool class_info() const override {
         return boost::serialization::implementation_level< T >::value 
             >= boost::serialization::object_class_info;
     }
-    virtual bool tracking(const unsigned int /* flags */) const {
+    virtual bool tracking(const unsigned int /* flags */) const override {
         return boost::serialization::tracking_level< T >::value == boost::serialization::track_always
             || (boost::serialization::tracking_level< T >::value == boost::serialization::track_selectively
                 && serialized_as_pointer());
     }
-    virtual version_type version() const {
+    virtual version_type version() const override {
         return version_type(::boost::serialization::version< T >::value);
     }
-    virtual bool is_polymorphic() const {
+    virtual bool is_polymorphic() const override {
         return boost::is_polymorphic< T >::value;
     }
-    virtual ~oserializer(){}
+    virtual ~oserializer() override{}
 };
 
 #ifdef BOOST_MSVC
@@ -164,7 +164,7 @@ class pointer_oserializer :
 {
 private:
     const basic_oserializer & 
-    get_basic_serializer() const {
+    get_basic_serializer() const override {
         return boost::serialization::singleton<
             oserializer<Archive, T>
         >::get_const_instance();
@@ -172,10 +172,10 @@ private:
     virtual BOOST_DLLEXPORT void save_object_ptr(
         basic_oarchive & ar,
         const void * x
-    ) const BOOST_USED;
+    ) const override BOOST_USED;
 public:
     pointer_oserializer();
-    ~pointer_oserializer();
+    ~pointer_oserializer() override;
 };
 
 #ifdef BOOST_MSVC
index e3e18605b38b6ed9067997f741f9d1469c04132d..1feed100597921464df0a4fca59b210f4399addf 100644 (file)
@@ -46,7 +46,7 @@ public:
     dataflow_exception(exception_code c = other_exception) : code(c)
     {}
 
-    virtual const char *what( ) const throw( )
+    virtual const char *what( ) const throw( ) override
     {
         const char *msg = "unknown exception code";
         switch(code){
index d3c59a9f0f4faf18f4f38d81b912570aac469358..ae63bd3d997f6a5c44c56a14b057a9533e4b8fe6 100644 (file)
@@ -156,7 +156,7 @@ class BOOST_SYMBOL_VISIBLE polymorphic_iarchive :
     public polymorphic_iarchive_impl
 {
 public:
-    virtual ~polymorphic_iarchive(){};
+    virtual ~polymorphic_iarchive() override{};
 };
 
 } // namespace archive
index edac4edb1e825a5782394824be15acbb1e09366a..0ad35c78af463ce7348baa92403c69d3f5547340 100644 (file)
@@ -140,7 +140,7 @@ class BOOST_SYMBOL_VISIBLE polymorphic_oarchive :
     public polymorphic_oarchive_impl
 {
 public:
-    virtual ~polymorphic_oarchive(){};
+    virtual ~polymorphic_oarchive() override{};
 };
 
 } // namespace archive
index d9d60adf0b8d3ac21995caf65934ae8ebc33e514..2c75f2acfce748edb858e2b25fb60eec0cc0129c 100644 (file)
@@ -89,7 +89,7 @@ protected:
     text_iarchive_impl(std::istream & is, unsigned int flags);
     // don't import inline definitions! leave this as a reminder.
     //BOOST_ARCHIVE_DECL 
-    ~text_iarchive_impl(){};
+    ~text_iarchive_impl() override{};
 };
 
 } // namespace archive
@@ -116,7 +116,7 @@ public:
         // note: added _ to suppress useless gcc warning
         text_iarchive_impl<text_iarchive>(is_, flags)
     {}
-    ~text_iarchive(){}
+    ~text_iarchive() override{}
 };
 
 } // namespace archive
index e4c6d4666a3d20631f71fd722c52dc14e0e25c11..9fd7993b892ef88699aa2682abe745afa0933590 100644 (file)
@@ -86,7 +86,7 @@ protected:
     text_oarchive_impl(std::ostream & os, unsigned int flags);
     // don't import inline definitions! leave this as a reminder.
     //BOOST_ARCHIVE_DECL 
-    ~text_oarchive_impl(){};
+    ~text_oarchive_impl() override{};
 public:
     BOOST_ARCHIVE_DECL void 
     save_binary(const void *address, std::size_t count);
@@ -103,7 +103,7 @@ public:
         // note: added _ to suppress useless gcc warning
         text_oarchive_impl<text_oarchive>(os_, flags)
     {}
-    ~text_oarchive(){}
+    ~text_oarchive() override{}
 };
 
 } // namespace archive
index 3adf068a51a3c0c0a42b92d2378c29ca0563e546..2acc64670277e5fea1f7fcc20212928f65500a6c 100644 (file)
@@ -94,7 +94,7 @@ protected:
     }
     BOOST_WARCHIVE_DECL 
     text_wiarchive_impl(std::wistream & is, unsigned int flags);
-    ~text_wiarchive_impl(){};
+    ~text_wiarchive_impl() override{};
 };
 
 } // namespace archive
@@ -120,7 +120,7 @@ public:
     text_wiarchive(std::wistream & is, unsigned int flags = 0) :
         text_wiarchive_impl<text_wiarchive>(is, flags)
     {}
-    ~text_wiarchive(){}
+    ~text_wiarchive() override{}
 };
 
 } // namespace archive
index beba62f705830178bd707b3f6ebd1b1c51a18ad1..b55d57e01ffe5b65faf658c66f91d3a1f4fd1849 100644 (file)
@@ -136,7 +136,7 @@ public:
     text_woarchive(std::wostream & os, unsigned int flags = 0) :
         text_woarchive_impl<text_woarchive>(os, flags)
     {}
-    ~text_woarchive(){}
+    ~text_woarchive() override{}
 };
 
 } // namespace archive
index 82c53ef5d3ec16e6a48c91f1ea884aff779471db..5c21680af3228a0617588f3e5337472cd2a1554f 100644 (file)
@@ -46,7 +46,7 @@ public:
         const char * e2 = NULL
     );
     BOOST_ARCHIVE_DECL xml_archive_exception(xml_archive_exception const &) ;
-    virtual BOOST_ARCHIVE_DECL ~xml_archive_exception() BOOST_NOEXCEPT_OR_NOTHROW ;
+    virtual BOOST_ARCHIVE_DECL ~xml_archive_exception() BOOST_NOEXCEPT_OR_NOTHROW override ;
 };
 
 }// namespace archive
index abd2f9fc4e37a89e76f1cdd759902fbd39323e9e..0fdda45b2a6e3a8b4f98d1591f0417abff7359a2 100644 (file)
@@ -101,7 +101,7 @@ protected:
     BOOST_ARCHIVE_DECL 
     xml_iarchive_impl(std::istream & is, unsigned int flags);
     BOOST_ARCHIVE_DECL
-    ~xml_iarchive_impl();
+    ~xml_iarchive_impl() override;
 };
 
 } // namespace archive
@@ -126,7 +126,7 @@ public:
     xml_iarchive(std::istream & is, unsigned int flags = 0) :
         xml_iarchive_impl<xml_iarchive>(is, flags)
     {}
-    ~xml_iarchive(){};
+    ~xml_iarchive() override{};
 };
 
 } // namespace archive
index d0fa8b21f2652b445ffff937688d2e3fa22f7303..2222e627e8e7ad1eb0dec23aebf56e19bb4da060 100644 (file)
@@ -86,7 +86,7 @@ protected:
     BOOST_ARCHIVE_DECL 
     xml_oarchive_impl(std::ostream & os, unsigned int flags);
     BOOST_ARCHIVE_DECL 
-    ~xml_oarchive_impl();
+    ~xml_oarchive_impl() override;
 public:
     BOOST_ARCHIVE_DECL
     void save_binary(const void *address, std::size_t count);
@@ -121,7 +121,7 @@ public:
     xml_oarchive(std::ostream & os, unsigned int flags = 0) :
         xml_oarchive_impl<xml_oarchive>(os, flags)
     {}
-    ~xml_oarchive(){}
+    ~xml_oarchive() override{}
 };
 
 } // namespace archive
index ac24289ac11e5795fb77b0ff82266cf78d468814..e7c0393477b5eaf97554839b7123b923c441484a 100644 (file)
@@ -106,7 +106,7 @@ protected:
     BOOST_WARCHIVE_DECL 
     xml_wiarchive_impl(std::wistream & is, unsigned int flags) ;
     BOOST_WARCHIVE_DECL 
-    ~xml_wiarchive_impl();
+    ~xml_wiarchive_impl() override;
 };
 
 } // namespace archive
@@ -132,7 +132,7 @@ public:
     xml_wiarchive(std::wistream & is, unsigned int flags = 0) :
         xml_wiarchive_impl<xml_wiarchive>(is, flags)
     {}
-    ~xml_wiarchive(){}
+    ~xml_wiarchive() override{}
 };
 
 } // namespace archive
index e6ac50de44b1cc81ffdb472a200d4782f44d6873..316e42469e55e3355fdfe9a13773523c84741719 100644 (file)
@@ -95,7 +95,7 @@ protected:
     BOOST_WARCHIVE_DECL 
     xml_woarchive_impl(std::wostream & os, unsigned int flags);
     BOOST_WARCHIVE_DECL
-    ~xml_woarchive_impl();
+    ~xml_woarchive_impl() override;
 public:
     BOOST_WARCHIVE_DECL void
     save_binary(const void *address, std::size_t count);
@@ -115,7 +115,7 @@ public:
     xml_woarchive(std::wostream & os, unsigned int flags = 0) :
         xml_woarchive_impl<xml_woarchive>(os, flags)
     {}
-    ~xml_woarchive(){}
+    ~xml_woarchive() override{}
 };
 
 } // namespace archive
index d2fa26d47aa8e07a5f30d491a9bb3cabe781e566..2431f2cc38570215cdd42c3a68c1f436edd58ba8 100644 (file)
@@ -114,7 +114,7 @@ struct BOOST_SYMBOL_VISIBLE utf8_codecvt_facet :
 {
 public:
     BOOST_UTF8_DECL explicit utf8_codecvt_facet(std::size_t no_locale_manage=0);
-    virtual  ~utf8_codecvt_facet(){}
+    virtual  ~utf8_codecvt_facet() override{}
 protected:
     BOOST_UTF8_DECL virtual std::codecvt_base::result do_in(
         std::mbstate_t& state, 
@@ -124,7 +124,7 @@ protected:
         wchar_t * to, 
         wchar_t * to_end, 
         wchar_t*& to_next
-    ) const;
+    ) const override;
 
     BOOST_UTF8_DECL virtual std::codecvt_base::result do_out(
         std::mbstate_t & state,
@@ -134,7 +134,7 @@ protected:
         char * to,
         char * to_end,
         char * & to_next
-    ) const;
+    ) const override;
 
     bool invalid_continuing_octet(unsigned char octet_1) const {
         return (octet_1 < 0x80|| 0xbf< octet_1);
@@ -156,7 +156,7 @@ protected:
     // ==   total octets - 1.
     BOOST_UTF8_DECL int get_cont_octet_out_count(wchar_t word) const ;
 
-    virtual bool do_always_noconv() const BOOST_NOEXCEPT_OR_NOTHROW {
+    virtual bool do_always_noconv() const BOOST_NOEXCEPT_OR_NOTHROW override {
         return false;
     }
 
@@ -166,12 +166,12 @@ protected:
         char * from,
         char * /*to*/,
         char * & next
-    ) const {
+    ) const override {
         next = from;
         return ok;
     }
 
-    virtual int do_encoding() const BOOST_NOEXCEPT_OR_NOTHROW {
+    virtual int do_encoding() const BOOST_NOEXCEPT_OR_NOTHROW override {
         const int variable_byte_external_encoding=0;
         return variable_byte_external_encoding;
     }
@@ -194,6 +194,7 @@ protected:
         const char * from_end, 
         std::size_t max_limit
     ) const
+      override
 #if BOOST_WORKAROUND(__IBMCPP__, BOOST_TESTED_AT(600))
     throw()
 #endif
@@ -206,7 +207,7 @@ protected:
         );
     }
     // Largest possible value do_length(state,from,from_end,1) could return.
-    virtual int do_max_length() const BOOST_NOEXCEPT_OR_NOTHROW {
+    virtual int do_max_length() const BOOST_NOEXCEPT_OR_NOTHROW override {
         return 6; // largest UTF-8 encoding of a UCS-4 character
     }
 };
index 56ee30dce09bcf3fc1067360aec8c1ffad7e6b52..29eea2eb21a37d8de0ab33162753191c5c25f239 100644 (file)
@@ -30,7 +30,7 @@ namespace boost {
         {
         public:
             format_error()  {}
-            virtual const char *what() const throw() {
+            virtual const char *what() const throw() override {
                 return "boost::format_error: "
                     "format generic failure";
             }
@@ -44,7 +44,7 @@ namespace boost {
                 : pos_(pos), next_(size) {}
             std::size_t get_pos() const { return pos_; }
             std::size_t get_next() const { return next_; }
-            virtual const char *what() const throw() {
+            virtual const char *what() const throw() override {
                 return "boost::bad_format_string: format-string is ill-formed";
             }
         };
@@ -57,7 +57,7 @@ namespace boost {
                 : cur_(cur), expected_(expected) {}
             std::size_t get_cur() const { return cur_; }
             std::size_t get_expected() const { return expected_; }
-            virtual const char *what() const throw() {
+            virtual const char *what() const throw() override {
                 return "boost::too_few_args: "
                     "format-string referred to more arguments than were passed";
             }
@@ -71,7 +71,7 @@ namespace boost {
                 : cur_(cur), expected_(expected) {}
             std::size_t get_cur() const { return cur_; }
             std::size_t get_expected() const { return expected_; }
-            virtual const char *what() const throw() {
+            virtual const char *what() const throw() override {
                 return "boost::too_many_args: "
                     "format-string referred to fewer arguments than were passed";
             }
@@ -87,7 +87,7 @@ namespace boost {
             int get_index() const { return index_; }
             int get_beg() const { return beg_; }
             int get_end() const { return end_; }
-            virtual const char *what() const throw() {
+            virtual const char *what() const throw() override {
                 return "boost::out_of_range: "
                     "tried to refer to an argument (or item) number which"
                     " is out of range, according to the format string";
index 8da5ef3c504ed286f811c973f4a0649995974044..0855470fd6c9a509ab74681b91bb9714f733c190 100644 (file)
@@ -66,9 +66,9 @@ public:
     void open(const T& t BOOST_IOSTREAMS_PUSH_PARAMS());
     bool is_open() const;
     void close();
-    bool auto_close() const;
-    void set_auto_close(bool close);
-    bool strict_sync();
+    bool auto_close() const override;
+    void set_auto_close(bool close) override;
+    bool strict_sync() override;
 
     // Declared in linked_streambuf.
     T* component() { return &*obj(); }
@@ -78,24 +78,24 @@ protected:
     //----------virtual functions---------------------------------------------//
 
 #ifndef BOOST_IOSTREAMS_NO_LOCALE
-    void imbue(const std::locale& loc);
+    void imbue(const std::locale& loc) override;
 #endif
 #ifdef BOOST_IOSTREAMS_NO_STREAM_TEMPLATES
     public:
 #endif
-    int_type underflow();
-    int_type pbackfail(int_type c);
-    int_type overflow(int_type c);
-    int sync();
+    int_type underflow() override;
+    int_type pbackfail(int_type c) override;
+    int_type overflow(int_type c) override;
+    int sync() override;
     pos_type seekoff( off_type off, BOOST_IOS::seekdir way,
-                      BOOST_IOS::openmode which );
-    pos_type seekpos(pos_type sp, BOOST_IOS::openmode which);
+                      BOOST_IOS::openmode which ) override;
+    pos_type seekpos(pos_type sp, BOOST_IOS::openmode which) override;
 
     // Declared in linked_streambuf.
-    void set_next(streambuf_type* next);
-    void close_impl(BOOST_IOS::openmode m);
-    const std::type_info& component_type() const { return typeid(T); }
-    void* component_impl() { return component(); }
+    void set_next(streambuf_type* next) override;
+    void close_impl(BOOST_IOS::openmode m) override;
+    const std::type_info& component_type() const override { return typeid(T); }
+    void* component_impl() override { return component(); }
 private:
 
     //----------Accessor functions--------------------------------------------//
index 3279c590cfbe42f68218befd287e7f8d52bd037b..75f6a0322425efce57fb205584c556a3be42a191 100644 (file)
@@ -89,7 +89,7 @@ protected:
             >::stream_type                                stream_type;
     filtering_stream_base() : stream_type(0) { this->set_chain(&chain_); }
 private:
-    void notify() { this->rdbuf(chain_.empty() ? 0 : &chain_.front()); }
+    void notify() override { this->rdbuf(chain_.empty() ? 0 : &chain_.front()); }
     Chain chain_;
 };
 
index dbcb786c659f08b4bc7450536eb1f559aae96fa2..61cd4ce6351df460b8fb8bdca27799bf50e6ed4f 100644 (file)
@@ -84,7 +84,7 @@ public:
     BOOST_IOSTREAMS_STREAMBUF_TYPEDEFS(Tr)
 public:
     stream_buffer() { }
-    ~stream_buffer()
+    ~stream_buffer() override
     { 
         try { 
             if (this->is_open() && this->auto_close()) 
index 093121565e190614fa1f8ad64ea6c3622d2f77e4..39ba0f8b6d5ef60ebce3ca432a323fc3b3ec39a7 100644 (file)
@@ -51,12 +51,12 @@ namespace boost
 #endif
         {}
 
-        virtual const char *what() const BOOST_NOEXCEPT_OR_NOTHROW {
+        virtual const char *what() const BOOST_NOEXCEPT_OR_NOTHROW override {
             return "bad lexical cast: "
                    "source type value could not be interpreted as target";
         }
 
-        virtual ~bad_lexical_cast() BOOST_NOEXCEPT_OR_NOTHROW
+        virtual ~bad_lexical_cast() BOOST_NOEXCEPT_OR_NOTHROW override
         {}
 
 #ifndef BOOST_NO_TYPEID
index e7a5e67ce9eb8e0513b2c5c490c35b64eff71ac3..85ed41aab998ecaf51ebca6d670aa9267aba32b2 100644 (file)
@@ -136,7 +136,7 @@ class bad_numeric_cast : public std::bad_cast
 {
   public:
 
-    virtual const char * what() const throw()
+    virtual const char * what() const throw() override
       {  return "bad numeric conversion: overflow"; }
 };
 
@@ -144,14 +144,14 @@ class negative_overflow : public bad_numeric_cast
 {
   public:
 
-    virtual const char * what() const throw()
+    virtual const char * what() const throw() override
       {  return "bad numeric conversion: negative overflow"; }
 };
 class positive_overflow : public bad_numeric_cast
 {
   public:
 
-    virtual const char * what() const throw()
+    virtual const char * what() const throw() override
       { return "bad numeric conversion: positive overflow"; }
 };
 
index ff90583f9ea31be8f1f9e97748182b91ebf77ac0..7aeb0f6c4ae2f3595bb87b54f2cd6fc85a0e01ad 100644 (file)
@@ -34,7 +34,7 @@ namespace boost { namespace property_tree
         {
         }
 
-        ~file_parser_error() throw()
+        ~file_parser_error() throw() override
             // gcc 3.4.2 complains about lack of throw specifier on compiler
             // generated dtor
         {
index 9e3d76af9dc54df7021ff5edc6cf92e5a17f26d2..196807a70ff30229e75bf286fadc19186ca303e7 100644 (file)
@@ -58,7 +58,7 @@ namespace boost { namespace property_tree { namespace detail {namespace rapidxml
 
         //! Gets human readable description of error.
         //! \return Pointer to null terminated description of the error.
-        virtual const char *what() const throw()
+        virtual const char *what() const throw() override
         {
             return m_what;
         }
index b35b27fce915e9b9b31bd442db55d8579c049ecc..ca8596634212ee90b9e576dbad07c992bc5dd110 100644 (file)
@@ -31,7 +31,7 @@ namespace boost { namespace property_tree
         /// @param what The message to associate with this error.
         ptree_error(const std::string &what);
 
-        ~ptree_error() throw();
+        ~ptree_error() throw() override;
     };
 
 
@@ -48,7 +48,7 @@ namespace boost { namespace property_tree
         template<class T> ptree_bad_data(const std::string &what,
                                          const T &data);
 
-        ~ptree_bad_data() throw();
+        ~ptree_bad_data() throw() override;
 
         /// Retrieve the data associated with this error. This is the source
         /// value that failed to be translated. You need to explicitly
@@ -70,7 +70,7 @@ namespace boost { namespace property_tree
         template<class T> ptree_bad_path(const std::string &what,
                                          const T &path);
 
-        ~ptree_bad_path() throw();
+        ~ptree_bad_path() throw() override;
 
         /// Retrieve the invalid path. You need to explicitly specify the
         /// type of path.
index aaa8b44459b0a79a364b1bd998e93fca586d9a37..9a7991cdf39dfdbf027beee7ae4f69d1c57cad0f 100644 (file)
@@ -57,12 +57,12 @@ class BOOST_SYMBOL_VISIBLE extended_type_info_no_rtti_0 :
 {
 protected:
     BOOST_SERIALIZATION_DECL extended_type_info_no_rtti_0(const char * key);
-    BOOST_SERIALIZATION_DECL ~extended_type_info_no_rtti_0();
+    BOOST_SERIALIZATION_DECL ~extended_type_info_no_rtti_0() override;
 public:
     virtual BOOST_SERIALIZATION_DECL bool
-    is_less_than(const boost::serialization::extended_type_info &rhs) const ;
+    is_less_than(const boost::serialization::extended_type_info &rhs) const override ;
     virtual BOOST_SERIALIZATION_DECL bool
-    is_equal(const boost::serialization::extended_type_info &rhs) const ;
+    is_equal(const boost::serialization::extended_type_info &rhs) const override ;
 };
 
 } // no_rtti_system
@@ -103,7 +103,7 @@ public:
     {
         key_register();
     }
-    ~extended_type_info_no_rtti(){
+    ~extended_type_info_no_rtti() override{
         key_unregister();
     }
     const extended_type_info *
@@ -121,10 +121,10 @@ public:
     const char * get_key() const{
         return action<guid_defined< T >::value >::invoke();
     }
-    virtual const char * get_debug_info() const{
+    virtual const char * get_debug_info() const override{
         return action<guid_defined< T >::value >::invoke();
     }
-    virtual void * construct(unsigned int count, ...) const{
+    virtual void * construct(unsigned int count, ...) const override{
         // count up the arguments
         std::va_list ap;
         va_start(ap, count);
@@ -145,7 +145,7 @@ public:
             return NULL;
         }
     }
-    virtual void destroy(void const * const p) const{
+    virtual void destroy(void const * const p) const override{
         boost::serialization::access::destroy(
             static_cast<T const *>(p)
         );
index 8ee591b3169a96559f99c4416aada2637c83ae48..a9def03825e91c38d5a31a0b01a052b093fb789c 100644 (file)
@@ -52,7 +52,7 @@ namespace typeid_system {
 class BOOST_SYMBOL_VISIBLE extended_type_info_typeid_0 :
     public extended_type_info
 {
-    virtual const char * get_debug_info() const {
+    virtual const char * get_debug_info() const override {
         if(static_cast<const std::type_info *>(0) == m_ti)
             return static_cast<const char *>(0);
         return m_ti->name();
@@ -60,16 +60,16 @@ class BOOST_SYMBOL_VISIBLE extended_type_info_typeid_0 :
 protected:
     const std::type_info * m_ti;
     BOOST_SERIALIZATION_DECL extended_type_info_typeid_0(const char * key);
-    BOOST_SERIALIZATION_DECL ~extended_type_info_typeid_0();
+    BOOST_SERIALIZATION_DECL ~extended_type_info_typeid_0() override;
     BOOST_SERIALIZATION_DECL void type_register(const std::type_info & ti);
     BOOST_SERIALIZATION_DECL void type_unregister();
     BOOST_SERIALIZATION_DECL const extended_type_info *
     get_extended_type_info(const std::type_info & ti) const;
 public:
     virtual BOOST_SERIALIZATION_DECL bool
-    is_less_than(const extended_type_info &rhs) const;
+    is_less_than(const extended_type_info &rhs) const override;
     virtual BOOST_SERIALIZATION_DECL bool
-    is_equal(const extended_type_info &rhs) const;
+    is_equal(const extended_type_info &rhs) const override;
     const std::type_info & get_typeid() const {
         return *m_ti;
     }
@@ -91,7 +91,7 @@ public:
         type_register(typeid(T));
         key_register();
     }
-    ~extended_type_info_typeid(){
+    ~extended_type_info_typeid() override{
         key_unregister();
         type_unregister();
     }
@@ -110,7 +110,7 @@ public:
     const char * get_key() const {
         return boost::serialization::guid< T >();
     }
-    virtual void * construct(unsigned int count, ...) const{
+    virtual void * construct(unsigned int count, ...) const override{
         // count up the arguments
         std::va_list ap;
         va_start(ap, count);
@@ -131,7 +131,7 @@ public:
             return NULL;
         }
     }
-    virtual void destroy(void const * const p) const {
+    virtual void destroy(void const * const p) const override {
         boost::serialization::access::destroy(
             static_cast<T const *>(p)
         );
index fcb79c36943dbe786b7c377c6cc475a58a8ff02f..25dfef8059466f8738b9b9801fcb7eac5b5aa965 100644 (file)
@@ -101,7 +101,7 @@ class singleton_wrapper : public T
 {
 public:
     static bool m_is_destroyed;
-    ~singleton_wrapper(){
+    ~singleton_wrapper() {
         m_is_destroyed = true;
     }
 };
index f1b3828611559d330300b31f223a4229cd749357..5956dca3770ac3ba1c19213458fd362bebe61915 100644 (file)
@@ -154,26 +154,26 @@ template <class Derived, class Base>
 class BOOST_SYMBOL_VISIBLE void_caster_primitive :
     public void_caster
 {
-    virtual void const * downcast(void const * const t) const {
+    virtual void const * downcast(void const * const t) const override {
         const Derived * d = 
             boost::serialization::smart_cast<const Derived *, const Base *>(
                 static_cast<const Base *>(t)
             );
         return d;
     }
-    virtual void const * upcast(void const * const t) const {
+    virtual void const * upcast(void const * const t) const override {
         const Base * b = 
             boost::serialization::smart_cast<const Base *, const Derived *>(
                 static_cast<const Derived *>(t)
             );
         return b;
     }
-    virtual bool has_virtual_base() const {
+    virtual bool has_virtual_base() const override {
         return false;
     }
 public:
     void_caster_primitive();
-    virtual ~void_caster_primitive();
+    virtual ~void_caster_primitive() override;
 };
 
 template <class Derived, class Base>
@@ -202,18 +202,18 @@ template <class Derived, class Base>
 class BOOST_SYMBOL_VISIBLE void_caster_virtual_base :
     public void_caster
 {
-    virtual bool has_virtual_base() const {
+    virtual bool has_virtual_base() const override {
         return true;
     }
 public:
-    virtual void const * downcast(void const * const t) const {
+    virtual void const * downcast(void const * const t) const override {
         const Derived * d = 
             dynamic_cast<const Derived *>(
                 static_cast<const Base *>(t)
             );
         return d;
     }
-    virtual void const * upcast(void const * const t) const {
+    virtual void const * upcast(void const * const t) const override {
         const Base * b = 
             dynamic_cast<const Base *>(
                 static_cast<const Derived *>(t)
@@ -221,7 +221,7 @@ public:
         return b;
     }
     void_caster_virtual_base();
-    virtual ~void_caster_virtual_base();
+    virtual ~void_caster_virtual_base() override;
 };
 
 #ifdef BOOST_MSVC
index dac806b2217a586f1c3575dabf88e725c11fe861..ac980ef0e00a12279079d59eae3722d539faefec 100644 (file)
@@ -145,8 +145,8 @@ namespace boost
           m_slot(new SlotType(slot_in)), _mutex(signal_mutex)
         {
         }
-        virtual ~connection_body() {}
-        virtual bool connected() const
+        virtual ~connection_body() override {}
+        virtual bool connected() const override
         {
           garbage_collecting_lock<mutex_type> local_lock(*_mutex);
           nolock_grab_tracked_objects(local_lock, detail::null_output_iterator());
@@ -191,11 +191,11 @@ namespace boost
           }
         }
         // expose Lockable concept of mutex
-        virtual void lock()
+        virtual void lock() override
         {
           _mutex->lock();
         }
-        virtual void unlock()
+        virtual void unlock() override
         {
           _mutex->unlock();
         }
@@ -208,7 +208,7 @@ namespace boost
           return *m_slot;
         }
       protected:
-        virtual shared_ptr<void> release_slot() const
+        virtual shared_ptr<void> release_slot() const override
         {
           
           shared_ptr<void> released_slot = m_slot;
index a28ba4337c3a7de8a2285e5808f5cd1493468efa..80f5a5b48293fb66b1a5c692a4d17da97ec5c531 100644 (file)
@@ -70,7 +70,7 @@ namespace boost
       public:
         foreign_shared_ptr_impl(const FSP &p): _p(p)
         {}
-        virtual foreign_shared_ptr_impl * clone() const
+        virtual foreign_shared_ptr_impl * clone() const override
         {
           return new foreign_shared_ptr_impl(*this);
         }
@@ -123,15 +123,15 @@ namespace boost
       public:
         foreign_weak_ptr_impl(const FWP &p): _p(p)
         {}
-        virtual foreign_void_shared_ptr lock() const
+        virtual foreign_void_shared_ptr lock() const override
         {
           return foreign_void_shared_ptr(_p.lock());
         }
-        virtual bool expired() const
+        virtual bool expired() const override
         {
           return _p.expired();
         }
-        virtual foreign_weak_ptr_impl * clone() const
+        virtual foreign_weak_ptr_impl * clone() const override
         {
           return new foreign_weak_ptr_impl(*this);
         }
index 036876727aca49dd9da2abfc602464534af2834c..fb7591bbc14cdd0432a50579224798ff4ffe7c0b 100644 (file)
@@ -660,7 +660,7 @@ namespace boost
         const group_compare_type &group_compare = group_compare_type()):
         _pimpl(new impl_class(combiner_arg, group_compare))
       {};
-      virtual ~BOOST_SIGNALS2_SIGNAL_CLASS_NAME(BOOST_SIGNALS2_NUM_ARGS)()
+      virtual ~BOOST_SIGNALS2_SIGNAL_CLASS_NAME(BOOST_SIGNALS2_NUM_ARGS)() override
       {
       }
       
@@ -748,7 +748,7 @@ namespace boost
         swap(_pimpl, other._pimpl);
       }
     protected:
-      virtual shared_ptr<void> lock_pimpl() const
+      virtual shared_ptr<void> lock_pimpl() const override
       {
         return _pimpl;
       }
index fa6db22d667698ac951eb54ce7b0c0fdcc977235..d04996e2e0c3fd792125666a1190452c7cb62773 100644 (file)
@@ -20,7 +20,7 @@ namespace boost
     class expired_slot: public bad_weak_ptr
     {
     public:
-      virtual char const * what() const throw()
+      virtual char const * what() const throw() override
       {
         return "boost::signals2::expired_slot";
       }
index 99fb6afbc3fb381b9c8ba9b015c14a816df08696..ead41e3e6cffa05617f80dbf70d70f4d83bbcda8 100644 (file)
@@ -25,7 +25,7 @@ namespace boost {
     class no_slots_error: public std::exception
     {
     public:
-      virtual const char* what() const throw() {return "boost::signals2::no_slots_error";}
+      virtual const char* what() const throw() override {return "boost::signals2::no_slots_error";}
     };
 
     template<typename T>
index 3e0a1b728677d0da025967f735db4e54c9f4fb83..cc259787a7e3d904f65aa76dfb11d9bc35c04f61 100644 (file)
@@ -40,7 +40,7 @@ class bad_weak_ptr: public std::exception
 {
 public:
 
-    virtual char const * what() const throw()
+    virtual char const * what() const throw() override
     {
         return "tr1::bad_weak_ptr";
     }
index b7c9617f0b1e8dee5e40ab76f06c14d82d608ada..48ad7b4dad42abc6c84d0f941bcceb8e9e783ccf 100644 (file)
@@ -24,11 +24,11 @@ namespace boost {
                 : allocator(allocator_) {
             }
 
-            virtual void dispose() {
+            virtual void dispose() override {
                 allocator();
             }
 
-            virtual void destroy() {
+            virtual void destroy() override {
 #if !defined(BOOST_NO_CXX11_ALLOCATOR)
                 typedef typename std::allocator_traits<A>::
                     template rebind_alloc<Y> YA;
@@ -47,11 +47,11 @@ namespace boost {
 #endif                
             }
 
-            virtual void* get_deleter(const sp_typeinfo&) {
+            virtual void* get_deleter(const sp_typeinfo&) override {
                 return &reinterpret_cast<char&>(allocator);
             }
 
-            virtual void* get_untyped_deleter() {
+            virtual void* get_untyped_deleter() override {
                 return &reinterpret_cast<char&>(allocator);
             }
 
index 1222f3c9f4e1dcf0318faae02f93ece5003e5a27..5c6f335712d926fc9a6fceda72ea41b798da0332 100644 (file)
@@ -70,7 +70,7 @@ public:
 #endif
     }
 
-    virtual void dispose() // nothrow
+    virtual void dispose() override // nothrow
     {
 #if defined(BOOST_SP_ENABLE_DEBUG_HOOKS)
         boost::sp_scalar_destructor_hook( px_, sizeof(X), this );
@@ -78,12 +78,12 @@ public:
         boost::checked_delete( px_ );
     }
 
-    virtual void * get_deleter( sp_typeinfo const & )
+    virtual void * get_deleter( sp_typeinfo const & ) override
     {
         return 0;
     }
 
-    virtual void * get_untyped_deleter()
+    virtual void * get_untyped_deleter() override
     {
         return 0;
     }
@@ -148,17 +148,17 @@ public:
     {
     }
 
-    virtual void dispose() // nothrow
+    virtual void dispose() override // nothrow
     {
         del( ptr );
     }
 
-    virtual void * get_deleter( sp_typeinfo const & ti )
+    virtual void * get_deleter( sp_typeinfo const & ti ) override
     {
         return ti == BOOST_SP_TYPEID(D)? &reinterpret_cast<char&>( del ): 0;
     }
 
-    virtual void * get_untyped_deleter()
+    virtual void * get_untyped_deleter() override
     {
         return &reinterpret_cast<char&>( del );
     }
@@ -217,12 +217,12 @@ public:
     {
     }
 
-    virtual void dispose() // nothrow
+    virtual void dispose() override // nothrow
     {
         d_( p_ );
     }
 
-    virtual void destroy() // nothrow
+    virtual void destroy() override // nothrow
     {
 #if !defined( BOOST_NO_CXX11_ALLOCATOR )
 
@@ -249,12 +249,12 @@ public:
         a2.deallocate( this, 1 );
     }
 
-    virtual void * get_deleter( sp_typeinfo const & ti )
+    virtual void * get_deleter( sp_typeinfo const & ti ) override
     {
         return ti == BOOST_SP_TYPEID( D )? &reinterpret_cast<char&>( d_ ): 0;
     }
 
-    virtual void * get_untyped_deleter()
+    virtual void * get_untyped_deleter() override
     {
         return &reinterpret_cast<char&>( d_ );
     }
index 137694ef2f6bb0a754c4f0b2090cc045f436d156..2d53f5f899f43bdba19b8941b3690367223b98bc 100644 (file)
@@ -233,16 +233,16 @@ BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN
         struct concrete_parser : abstract_parser<ScannerT, AttrT>
         {
             concrete_parser(ParserT const& p_) : p(p_) {}
-            virtual ~concrete_parser() {}
+            virtual ~concrete_parser() override {}
 
             virtual typename match_result<ScannerT, AttrT>::type
-            do_parse_virtual(ScannerT const& scan) const
+            do_parse_virtual(ScannerT const& scan) const override
             {
                 return p.parse(scan);
             }
 
             virtual abstract_parser<ScannerT, AttrT>*
-            clone() const
+            clone() const override
             {
                 return new concrete_parser(p);
             }
index 71c60f61da06699a6f477af3e907d604756cb564..e1e3276d6c0d2b0c3444e8a36c5b3a6ad4452d4d 100644 (file)
@@ -45,17 +45,17 @@ namespace
   {
   public:
     generic_error_category(){}
-    const char *   name() const BOOST_SYSTEM_NOEXCEPT;
-    std::string    message( int ev ) const;
+    const char *   name() const BOOST_SYSTEM_NOEXCEPT override;
+    std::string    message( int ev ) const override;
   };
 
   class system_error_category : public error_category
   {
   public:
     system_error_category(){}
-    const char *        name() const BOOST_SYSTEM_NOEXCEPT;
-    std::string         message( int ev ) const;
-    error_condition     default_error_condition( int ev ) const BOOST_SYSTEM_NOEXCEPT;
+    const char *        name() const BOOST_SYSTEM_NOEXCEPT override;
+    std::string         message( int ev ) const override;
+    error_condition     default_error_condition( int ev ) const BOOST_SYSTEM_NOEXCEPT override;
   };
 
   //  generic_error_category implementation  ---------------------------------//
index e07657eab5104657f0ed981baba877bb2328aed2..f02f62ae185a846967fd98ca44f849c09c52ad38 100644 (file)
@@ -28,7 +28,7 @@ struct bad_visit
 {
 public: // std::exception interface
 
-    virtual const char * what() const BOOST_NOEXCEPT_OR_NOTHROW
+    virtual const char * what() const BOOST_NOEXCEPT_OR_NOTHROW override
     {
         return "boost::bad_visit: "
                "failed visitation using boost::apply_visitor";
index f3eb84dc2920c4e4b2d5a84e82827ecefedf2e72..07f173593852c28434613dd2159dc3acf94ad201 100644 (file)
@@ -42,7 +42,7 @@ class BOOST_SYMBOL_VISIBLE bad_get
 {
 public: // std::exception implementation
 
-    virtual const char * what() const BOOST_NOEXCEPT_OR_NOTHROW
+    virtual const char * what() const BOOST_NOEXCEPT_OR_NOTHROW override
     {
         return "boost::bad_get: "
                "failed value get using boost::get";
index 538be310a0e0a962acb9894b3e8edd04dc27d132..9e7cfe1662f86a51df5c7f5748209edf0a7a8190 100644 (file)
@@ -178,28 +178,28 @@ basic_oarchive_impl::find(const serialization::extended_type_info & ti) const {
     class bosarg : 
         public basic_oserializer
     {
-        bool class_info() const {
+        bool class_info() const override {
             BOOST_ASSERT(false); 
             return false;
         }
         // returns true if objects should be tracked
-        bool tracking(const unsigned int) const {
+        bool tracking(const unsigned int) const override {
             BOOST_ASSERT(false);
             return false;
         }
         // returns class version
-        version_type version() const {
+        version_type version() const override {
             BOOST_ASSERT(false);
             return version_type(0);
         }
         // returns true if this class is polymorphic
-        bool is_polymorphic() const{
+        bool is_polymorphic() const override{
             BOOST_ASSERT(false);
             return false;
         }
         void save_object_data(      
             basic_oarchive & /*ar*/, const void * /*x*/
-        ) const {
+        ) const override {
             BOOST_ASSERT(false);
         }
     public:
index 13a60c3e77fc4973cbfff483e73cffb98b375103..db7a22d66b353529455c7f73f160fe7d532df08c 100644 (file)
@@ -80,23 +80,23 @@ typedef std::multiset<const extended_type_info *, key_compare> ktmap;
 class extended_type_info_arg : public extended_type_info
 {
     virtual bool
-    is_less_than(const extended_type_info & /*rhs*/) const {
+    is_less_than(const extended_type_info & /*rhs*/) const override {
         BOOST_ASSERT(false);
         return false;
     };
     virtual bool
-    is_equal(const extended_type_info & /*rhs*/) const {
+    is_equal(const extended_type_info & /*rhs*/) const override {
         BOOST_ASSERT(false);
         return false;
     };
-    virtual const char * get_debug_info() const {
+    virtual const char * get_debug_info() const override {
         return get_key();
     }
-    virtual void * construct(unsigned int /*count*/, ...) const{
+    virtual void * construct(unsigned int /*count*/, ...) const override{
         BOOST_ASSERT(false);
         return NULL;
     }
-    virtual void destroy(void const * const /*p*/) const {
+    virtual void destroy(void const * const /*p*/) const override {
         BOOST_ASSERT(false);
     }
 public:
@@ -104,7 +104,7 @@ public:
         extended_type_info(0, key)
     {}
 
-    ~extended_type_info_arg(){
+    ~extended_type_info_arg() override{
     }
 };
 
index 5669dfa7727c4f504ce7c5316b15c07a3e6ec3bc..495e6c36807c24550d47cd16f0f6233e3d0dfbac 100644 (file)
@@ -122,11 +122,11 @@ extended_type_info_typeid_0::type_unregister()
 class extended_type_info_typeid_arg : 
     public extended_type_info_typeid_0
 {
-    virtual void * construct(unsigned int /*count*/, ...) const{
+    virtual void * construct(unsigned int /*count*/, ...) const override{
         BOOST_ASSERT(false);
         return NULL;
     }
-    virtual void destroy(void const * const /*p*/) const {
+    virtual void destroy(void const * const /*p*/) const override {
         BOOST_ASSERT(false);
     }
 public:
@@ -138,7 +138,7 @@ public:
         // be added to the map.
         m_ti = & ti;
     }
-    ~extended_type_info_typeid_arg(){
+    ~extended_type_info_typeid_arg() override{
         m_ti = NULL;
     }
 };
index 9009993326eb508ea873ebaea95f61713a76f01e..a28d9f18c245fae928bdd558da997ed68d47057a 100644 (file)
@@ -88,13 +88,13 @@ class void_caster_shortcut : public void_caster
         void const * const t
     ) const;
     virtual void const *
-    upcast(void const * const t) const{
+    upcast(void const * const t) const override{
         if(m_includes_virtual_base)
             return vbc_upcast(t);
         return static_cast<const char *> ( t ) - m_difference;
     }
     virtual void const *
-    downcast(void const * const t) const{
+    downcast(void const * const t) const override{
         if(m_includes_virtual_base)
             return vbc_downcast(t);
         return static_cast<const char *> ( t ) + m_difference;
@@ -102,7 +102,7 @@ class void_caster_shortcut : public void_caster
     virtual bool is_shortcut() const {
         return true;
     }
-    virtual bool has_virtual_base() const {
+    virtual bool has_virtual_base() const override {
         return m_includes_virtual_base;
     }
 public:
@@ -118,7 +118,7 @@ public:
     {
         recursive_register(includes_virtual_base);
     }
-    virtual ~void_caster_shortcut(){
+    virtual ~void_caster_shortcut() override{
         recursive_unregister();
     }
 };
@@ -188,16 +188,16 @@ void_caster_shortcut::vbc_upcast(
 class void_caster_argument : public void_caster
 {
     virtual void const *
-    upcast(void const * const /*t*/) const {
+    upcast(void const * const /*t*/) const override {
         BOOST_ASSERT(false);
         return NULL;
     }
     virtual void const *
-    downcast( void const * const /*t*/) const {
+    downcast( void const * const /*t*/) const override {
         BOOST_ASSERT(false);
         return NULL;
     }
-    virtual bool has_virtual_base() const {
+    virtual bool has_virtual_base() const override {
         BOOST_ASSERT(false);
         return false;
     }
@@ -208,7 +208,7 @@ public:
     ) :
         void_caster(derived, base)
     {}
-    virtual ~void_caster_argument(){};
+    virtual ~void_caster_argument() override{};
 };
 
 #ifdef BOOST_MSVC

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.