Boost logo

Boost :

Subject: [boost] [tokenizer] 1.44 VS compiler warnings
From: Okko Willeboordse (okko.willeboordse_at_[hidden])
Date: 2010-08-18 05:17:36


Hello,

Running Boost 1.44, VS2008 SP1, W SDK 6.1, W Server 2003

When I compile;

#include <boost/date_time.hpp>

I get the following compiler warnings;
...
c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(589) :
warning C4996: 'std::_Traits_helper::copy_s': ...
...
c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(616) :
warning C4996: 'std::_Traits_helper::move_s': ...
...
c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(607) :
warning C4996: 'std::char_traits<char>::copy': ...
...
etc..

Above is caused by resent changes to tokenizer, more specific
token_functions.hpp for ticket 1755, starting with revision 62706.

When I revert token_functions.hpp to version of 1.43 warnings go away.

When I compile (copied from boost/date_time/date_parsing.hpp);

#include <boost/tokenizer.hpp>

typedef std::basic_string<char>::traits_type traits_type;
typedef boost::char_separator<char, traits_type> char_separator_type;

void foo()
{
  const char sep_char[] = {',','-','.',' ','/','\0'};
  char_separator_type sep(sep_char);
}

I get identical warnings;

Kind regards,

Okko Willeboordse


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk