Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r86374 - trunk/boost
From: antoshkka_at_[hidden]
Date: 2013-10-20 13:57:16


Author: apolukhin
Date: 2013-10-20 13:57:15 EDT (Sun, 20 Oct 2013)
New Revision: 86374
URL: http://svn.boost.org/trac/boost/changeset/86374

Log:
Supressing MSVC2013 warnings and ensuring that lexical cast io classes are not copied (refs #9271)

Text files modified:
   trunk/boost/lexical_cast.hpp | 9 +++++----
   1 files changed, 5 insertions(+), 4 deletions(-)

Modified: trunk/boost/lexical_cast.hpp
==============================================================================
--- trunk/boost/lexical_cast.hpp Sun Oct 20 12:57:43 2013 (r86373)
+++ trunk/boost/lexical_cast.hpp 2013-10-20 13:57:15 EDT (Sun, 20 Oct 2013) (r86374)
@@ -159,6 +159,7 @@
 #include <boost/container/container_fwd.hpp>
 #include <boost/integer.hpp>
 #include <boost/detail/basic_pointerbuf.hpp>
+#include <boost/noncopyable.hpp>
 #ifndef BOOST_NO_CWCHAR
 # include <cwchar>
 #endif
@@ -642,7 +643,7 @@
     namespace detail // lcast_put_unsigned
     {
         template <class Traits, class T, class CharT>
- class lcast_put_unsigned {
+ class lcast_put_unsigned: boost::noncopyable {
             typedef BOOST_DEDUCED_TYPENAME Traits::int_type int_type;
             BOOST_DEDUCED_TYPENAME boost::mpl::if_c<
                     (sizeof(int_type) > sizeof(T))
@@ -729,7 +730,7 @@
     namespace detail // lcast_ret_unsigned
     {
         template <class Traits, class T, class CharT>
- class lcast_ret_unsigned {
+ class lcast_ret_unsigned: boost::noncopyable {
             bool m_multiplier_overflowed;
             T m_multiplier;
             T& m_value;
@@ -1310,7 +1311,7 @@
                 , bool RequiresStringbuffer
                 , std::size_t CharacterBufferSize
>
- class lexical_istream_limited_src {
+ class lexical_istream_limited_src: boost::noncopyable {
             typedef BOOST_DEDUCED_TYPENAME out_stream_helper_trait<CharT, Traits>::buffer_t
                 buffer_t;
 
@@ -1676,7 +1677,7 @@
 
 
         template <class CharT, class Traits>
- class lexical_ostream_limited_src {
+ class lexical_ostream_limited_src: boost::noncopyable {
             //`[start, finish)` is the range to output by `operator >>`
             const CharT* start;
             const CharT* const finish;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk