99#ifndef BOOST_LOCALE_NUMPUNCT_HPP_INCLUDED
1010#define BOOST_LOCALE_NUMPUNCT_HPP_INCLUDED
1111#include < boost/locale/config.hpp>
12- #ifdef BOOST_MSVC
13- # pragma warning(push)
14- # pragma warning(disable : 4275 4251 4231 4660)
15- #endif
1612#include < locale>
1713#include < string>
1814
1915namespace boost {
2016 namespace locale {
2117
2218 template <typename CharType>
23- class BOOST_LOCALE_DECL numpunct_base : public std::numpunct<CharType>
19+ class numpunct_base : public std ::numpunct<CharType>
2420 {
2521 typedef std::basic_string<CharType> string_type;
2622 public:
@@ -35,7 +31,7 @@ namespace boost {
3531 }
3632
3733 protected:
38- virtual CharType do_decimal_point () const {
34+ CharType do_decimal_point () const BOOST_OVERRIDE {
3935 string_type dec = do_decimal_point_str ();
4036 if (dec.size () > 1 ) {
4137 return ' .' ;
@@ -49,7 +45,7 @@ namespace boost {
4945 return string_type (t, t + sizeof (t) - 1 );
5046 }
5147
52- virtual CharType do_thousands_sep () const {
48+ CharType do_thousands_sep () const BOOST_OVERRIDE {
5349 string_type thous = do_thousands_sep_str ();
5450 if (thous.size () > 1 ) {
5551 return ' ,' ;
@@ -63,18 +59,18 @@ namespace boost {
6359 return string_type (t, t + sizeof (t) - 1 );
6460 }
6561
66- virtual string_type do_truename () const {
62+ virtual string_type do_truename () const BOOST_OVERRIDE {
6763 static const char t[] = " true" ;
6864 return string_type (t, t + sizeof (t) - 1 );
6965 }
7066
71- virtual string_type do_falsename () const {
67+ virtual string_type do_falsename () const BOOST_OVERRIDE {
7268 static const char t[] = " false" ;
7369 return string_type (t, t + sizeof (t) - 1 );
7470 }
7571 };
7672
77- template <typename CharType> struct numpunct {} ;
73+ template <typename CharType> struct numpunct ;
7874
7975 template <> struct numpunct <char > : numpunct_base<char > {
8076 numpunct (size_t refs = 0 ) : numpunct_base<char >(refs) {}
0 commit comments