
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

On Wed, Aug 18, 2010 at 2:17 AM, Okko Willeboordse < okko.willeboordse@gmail.com> wrote:
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..
Just a helpful pointer. If you are going to copy/paste error messages, redacting them (with ...) doesn't help anyone. Note: C4996 is the deprecated function warning.

Ahmed Charles ahmedcharles@gmail.com> 8/18/2010 11:07 PM >> ( mailto:ahmedcharles@gmail.com> ) On Wed, Aug 18, 2010 at 2:17 AM, Okko Willeboordse < okko.willeboordse@gmail.com> wrote:
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..
Just a helpful pointer. If you are going to copy/paste error messages, redacting them (with ...) doesn't help anyone. Note: C4996 is the deprecated function warning. The same thing happened to me. One can define _SCL_SECURE_NO_WARNINGS to stop the warnings from appearing but I would prefer it if the problem could be fixed at source of the warnings. I'm guessing this can't be fixed until version 1.45?
-- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.

AMDG Ralf Globisch wrote:
The same thing happened to me. One can define _SCL_SECURE_NO_WARNINGS to stop the warnings from appearing but I would prefer it if the problem could be fixed at source of the warnings. I'm guessing this can't be fixed until version 1.45?
We decided long ago that these warnings can't be reliably fixed from within Boost. In Christ, Steven Watanabe

On 19.08.2010 19:00, Steven Watanabe wrote:
AMDG
Ralf Globisch wrote:
The same thing happened to me. One can define _SCL_SECURE_NO_WARNINGS to stop the warnings from appearing but I would prefer it if the problem could be fixed at source of the warnings. I'm guessing this can't be fixed until version 1.45?
We decided long ago that these warnings can't be reliably fixed from within Boost.
I think I worked around it in revision 64931. PS: These warnings are really annoying. :(

AMDG Andrey Semashev wrote:
On 19.08.2010 19:00, Steven Watanabe wrote:
Ralf Globisch wrote:
The same thing happened to me. One can define _SCL_SECURE_NO_WARNINGS to stop the warnings from appearing but I would prefer it if the problem could be fixed at source of the warnings. I'm guessing this can't be fixed until version 1.45?
We decided long ago that these warnings can't be reliably fixed from within Boost.
I think I worked around it in revision 64931.
Your fix looks like a good thing regardless of the warnings, since it avoid extraneous instantiations of basic_string. In Christ, Steven Watanabe P.S. The usual policy is to wait for the trunk tests to cycle before merging to the release branch.
participants (5)
-
Ahmed Charles
-
Andrey Semashev
-
Okko Willeboordse
-
Ralf Globisch
-
Steven Watanabe