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:
2723 numpunct_base (size_t refs = 0 ) : std::numpunct<CharType>(refs) {}
24+ virtual ~numpunct_base ();
2825
2926 string_type decimal_point_str () const {
3027 return do_decimal_point_str ();
@@ -35,7 +32,7 @@ namespace boost {
3532 }
3633
3734 protected:
38- virtual CharType do_decimal_point () const {
35+ CharType do_decimal_point () const BOOST_OVERRIDE {
3936 string_type dec = do_decimal_point_str ();
4037 if (dec.size () > 1 ) {
4138 return ' .' ;
@@ -49,7 +46,7 @@ namespace boost {
4946 return string_type (t, t + sizeof (t) - 1 );
5047 }
5148
52- virtual CharType do_thousands_sep () const {
49+ CharType do_thousands_sep () const BOOST_OVERRIDE {
5350 string_type thous = do_thousands_sep_str ();
5451 if (thous.size () > 1 ) {
5552 return ' ,' ;
@@ -63,18 +60,18 @@ namespace boost {
6360 return string_type (t, t + sizeof (t) - 1 );
6461 }
6562
66- virtual string_type do_truename () const {
63+ virtual string_type do_truename () const BOOST_OVERRIDE {
6764 static const char t[] = " true" ;
6865 return string_type (t, t + sizeof (t) - 1 );
6966 }
7067
71- virtual string_type do_falsename () const {
68+ virtual string_type do_falsename () const BOOST_OVERRIDE {
7269 static const char t[] = " false" ;
7370 return string_type (t, t + sizeof (t) - 1 );
7471 }
7572 };
7673
77- template <typename CharType> struct numpunct {} ;
74+ template <typename CharType> struct numpunct ;
7875
7976 template <> struct numpunct <char > : numpunct_base<char > {
8077 numpunct (size_t refs = 0 ) : numpunct_base<char >(refs) {}
0 commit comments