<p>Hi there,</p>
<p>When compiling the example program &quot;Timer.5 - Synchronising handlers in multithreaded programs&quot; of boost asio 1_44 with MSVC 2008 professional on Window XP professional, I got 8 compiling errors, although the code executes without any problem. Is it safe to ignore those warnings?</p>

<p>BTW: the Boost 1_44 was installed on my machine with the Binary Installers recommended in boost documentation.</p>
<p>Thanks,<br>Robert</p>
<p>------- Compiling warnings I got ----------<br>1&gt;------ Rebuild All started: Project: 4_strand_multithreaded, Configuration: Debug Win32 ------<br>1&gt;Deleting intermediate and output files for project &#39;4_strand_multithreaded&#39;, configuration &#39;Debug|Win32&#39;<br>
1&gt;Compiling...<br>1&gt;4_strand_multithreaded.cpp<br>1&gt;Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example:<br>1&gt;- add -D_WIN32_WINNT=0x0501 to the compiler command line; or<br>1&gt;- add _WIN32_WINNT=0x0501 to your project&#39;s Preprocessor Definitions.<br>
1&gt;Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).<br>1&gt;c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(589) : warning C4996: &#39;std::_Traits_helper::copy_s&#39;: Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ &#39;Checked Iterators&#39;<br>
1&gt;������� c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(604) : see declaration of &#39;std::_Traits_helper::copy_s&#39;<br>1&gt;������� c:\program files\microsoft visual studio 9.0\vc\include\xstring(1057) : see reference to function template instantiation &#39;char *std::_Traits_helper::copy_s&lt;_Traits&gt;(char *,size_t,const char *,size_t)&#39; being compiled<br>
1&gt;������� with<br>1&gt;������� [<br>1&gt;����������� _Traits=boost::tokenizer_detail::traits_extension&lt;traits_type&gt;<br>1&gt;������� ]<br>1&gt;������� c:\program files\microsoft visual studio 9.0\vc\include\xstring(1046) : while compiling class template member function &#39;std::basic_string&lt;_Elem,_Traits&gt; &amp;std::basic_string&lt;_Elem,_Traits&gt;::assign(const std::basic_string&lt;_Elem,_Traits&gt; &amp;,unsigned int,unsigned int)&#39;<br>
1&gt;������� with<br>1&gt;������� [<br>1&gt;����������� _Elem=char,<br>1&gt;����������� _Traits=boost::tokenizer_detail::traits_extension&lt;traits_type&gt;<br>1&gt;������� ]<br>1&gt;������� c:\program files\boost\boost_1_44\boost\token_functions.hpp(520) : see reference to class template instantiation &#39;std::basic_string&lt;_Elem,_Traits&gt;&#39; being compiled<br>
1&gt;������� with<br>1&gt;������� [<br>1&gt;����������� _Elem=char,<br>1&gt;����������� _Traits=boost::tokenizer_detail::traits_extension&lt;traits_type&gt;<br>1&gt;������� ]<br>1&gt;������� c:\program files\boost\boost_1_44\boost\tokenizer.hpp(92) : see reference to class template instantiation &#39;boost::char_separator&lt;Char,Tr&gt;&#39; being compiled<br>
1&gt;������� with<br>1&gt;������� [<br>1&gt;����������� Char=char,<br>1&gt;����������� Tr=traits_type<br>1&gt;������� ]<br>1&gt;������� c:\program files\boost\boost_1_44\boost\date_time\date_parsing.hpp(127) : see reference to class template instantiation &#39;boost::tokenizer&lt;TokenizerFunc,Iterator,Type&gt;&#39; being compiled<br>
1&gt;������� with<br>1&gt;������� [<br>1&gt;����������� TokenizerFunc=char_separator_type,<br>1&gt;����������� Iterator=std::_String_const_iterator&lt;char,std::char_traits&lt;char&gt;,std::allocator&lt;char&gt;&gt;,<br>1&gt;����������� Type=std::basic_string&lt;char,std::char_traits&lt;char&gt;,std::allocator&lt;char&gt;&gt;<br>
1&gt;������� ]<br>1&gt;������� c:\program files\boost\boost_1_44\boost\date_time\gregorian\parsers.hpp(30) : see reference to function template instantiation &#39;date_type boost::date_time::parse_date&lt;boost::gregorian::date&gt;(const std::string &amp;,int)&#39; being compiled<br>
1&gt;������� with<br>1&gt;������� [<br>1&gt;����������� date_type=boost::gregorian::date<br>1&gt;������� ]<br>1&gt;c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(589) : warning C4996: &#39;std::_Traits_helper::copy_s&#39;: Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ &#39;Checked Iterators&#39;<br>
1&gt;������� c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(604) : see declaration of &#39;std::_Traits_helper::copy_s&#39;<br>1&gt;������� c:\program files\microsoft visual studio 9.0\vc\include\xstring(2155) : see reference to function template instantiation &#39;wchar_t *std::_Traits_helper::copy_s&lt;_Traits&gt;(wchar_t *,size_t,const wchar_t *,size_t)&#39; being compiled<br>
1&gt;������� with<br>1&gt;������� [<br>1&gt;����������� _Traits=boost::tokenizer_detail::traits_extension&lt;traits_type&gt;<br>1&gt;������� ]<br>1&gt;������� c:\program files\microsoft visual studio 9.0\vc\include\xstring(2148) : while compiling class template member function &#39;void std::basic_string&lt;_Elem,_Traits&gt;::_Tidy(bool,unsigned int)&#39;<br>
1&gt;������� with<br>1&gt;������� [<br>1&gt;����������� _Elem=wchar_t,<br>1&gt;����������� _Traits=boost::tokenizer_detail::traits_extension&lt;traits_type&gt;<br>1&gt;������� ]<br>1&gt;������� c:\program files\boost\boost_1_44\boost\token_functions.hpp(520) : see reference to class template instantiation &#39;std::basic_string&lt;_Elem,_Traits&gt;&#39; being compiled<br>
1&gt;������� with<br>1&gt;������� [<br>1&gt;����������� _Elem=wchar_t,<br>1&gt;����������� _Traits=boost::tokenizer_detail::traits_extension&lt;traits_type&gt;<br>1&gt;������� ]<br>1&gt;������� c:\program files\boost\boost_1_44\boost\date_time\date_parsing.hpp(294) : see reference to class template instantiation &#39;boost::char_separator&lt;Char,Tr&gt;&#39; being compiled<br>
1&gt;������� with<br>1&gt;������� [<br>1&gt;����������� Char=wchar_t,<br>1&gt;����������� Tr=traits_type<br>1&gt;������� ]<br>1&gt;������� c:\program files\boost\boost_1_44\boost\date_time\gregorian\parsers.hpp(84) : see reference to function template instantiation &#39;boost::date_time::period&lt;point_rep,duration_rep&gt; boost::date_time::from_simple_string_type&lt;boost::gregorian::date,wchar_t&gt;(const std::basic_string&lt;_Elem,_Traits,_Ax&gt; &amp;)&#39; being compiled<br>
1&gt;������� with<br>1&gt;������� [<br>1&gt;����������� point_rep=boost::gregorian::date,<br>1&gt;����������� duration_rep=boost::gregorian::date_duration,<br>1&gt;����������� _Elem=wchar_t,<br>1&gt;����������� _Traits=std::char_traits&lt;wchar_t&gt;,<br>
1&gt;����������� _Ax=std::allocator&lt;wchar_t&gt;<br>1&gt;������� ]<br>1&gt;c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(616) : warning C4996: &#39;std::_Traits_helper::move_s&#39;: Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ &#39;Checked Iterators&#39;<br>
1&gt;������� c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(631) : see declaration of &#39;std::_Traits_helper::move_s&#39;<br>1&gt;������� c:\program files\microsoft visual studio 9.0\vc\include\xstring(1270) : see reference to function template instantiation &#39;char *std::_Traits_helper::move_s&lt;_Traits&gt;(char *,size_t,const char *,size_t)&#39; being compiled<br>
1&gt;������� with<br>1&gt;������� [<br>1&gt;����������� _Traits=boost::tokenizer_detail::traits_extension&lt;traits_type&gt;<br>1&gt;������� ]<br>1&gt;������� c:\program files\microsoft visual studio 9.0\vc\include\xstring(1262) : while compiling class template member function &#39;std::basic_string&lt;_Elem,_Traits&gt; &amp;std::basic_string&lt;_Elem,_Traits&gt;::erase(unsigned int,unsigned int)&#39;<br>
1&gt;������� with<br>1&gt;������� [<br>1&gt;����������� _Elem=char,<br>1&gt;����������� _Traits=boost::tokenizer_detail::traits_extension&lt;traits_type&gt;<br>1&gt;������� ]<br>1&gt;c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(616) : warning C4996: &#39;std::_Traits_helper::move_s&#39;: Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ &#39;Checked Iterators&#39;<br>
1&gt;������� c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(631) : see declaration of &#39;std::_Traits_helper::move_s&#39;<br>1&gt;������� c:\program files\microsoft visual studio 9.0\vc\include\xstring(1270) : see reference to function template instantiation &#39;wchar_t *std::_Traits_helper::move_s&lt;_Traits&gt;(wchar_t *,size_t,const wchar_t *,size_t)&#39; being compiled<br>
1&gt;������� with<br>1&gt;������� [<br>1&gt;����������� _Traits=boost::tokenizer_detail::traits_extension&lt;traits_type&gt;<br>1&gt;������� ]<br>1&gt;������� c:\program files\microsoft visual studio 9.0\vc\include\xstring(1262) : while compiling class template member function &#39;std::basic_string&lt;_Elem,_Traits&gt; &amp;std::basic_string&lt;_Elem,_Traits&gt;::erase(unsigned int,unsigned int)&#39;<br>
1&gt;������� with<br>1&gt;������� [<br>1&gt;����������� _Elem=wchar_t,<br>1&gt;����������� _Traits=boost::tokenizer_detail::traits_extension&lt;traits_type&gt;<br>1&gt;������� ]<br>1&gt;c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(607) : warning C4996: &#39;std::char_traits&lt;char&gt;::copy&#39;: Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ &#39;Checked Iterators&#39;<br>
1&gt;������� c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(453) : see declaration of &#39;std::char_traits&lt;char&gt;::copy&#39;<br>1&gt;������� c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(589) : see reference to function template instantiation &#39;char *std::_Traits_helper::copy_s&lt;_Traits&gt;(char *,size_t,const char *,size_t,std::_Unsecure_char_traits_tag)&#39; being compiled<br>
1&gt;������� with<br>1&gt;������� [<br>1&gt;����������� _Traits=boost::tokenizer_detail::traits_extension&lt;traits_type&gt;<br>1&gt;������� ]<br>1&gt;������� c:\program files\microsoft visual studio 9.0\vc\include\xstring(1057) : see reference to function template instantiation &#39;char *std::_Traits_helper::copy_s&lt;_Traits&gt;(char *,size_t,const char *,size_t)&#39; being compiled<br>
1&gt;������� with<br>1&gt;������� [<br>1&gt;����������� _Traits=boost::tokenizer_detail::traits_extension&lt;traits_type&gt;<br>1&gt;������� ]<br>1&gt;c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(607) : warning C4996: &#39;std::char_traits&lt;wchar_t&gt;::copy&#39;: Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ &#39;Checked Iterators&#39;<br>
1&gt;������� c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(338) : see declaration of &#39;std::char_traits&lt;wchar_t&gt;::copy&#39;<br>1&gt;������� c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(589) : see reference to function template instantiation &#39;wchar_t *std::_Traits_helper::copy_s&lt;_Traits&gt;(wchar_t *,size_t,const wchar_t *,size_t,std::_Unsecure_char_traits_tag)&#39; being compiled<br>
1&gt;������� with<br>1&gt;������� [<br>1&gt;����������� _Traits=boost::tokenizer_detail::traits_extension&lt;traits_type&gt;<br>1&gt;������� ]<br>1&gt;������� c:\program files\microsoft visual studio 9.0\vc\include\xstring(2155) : see reference to function template instantiation &#39;wchar_t *std::_Traits_helper::copy_s&lt;_Traits&gt;(wchar_t *,size_t,const wchar_t *,size_t)&#39; being compiled<br>
1&gt;������� with<br>1&gt;������� [<br>1&gt;����������� _Traits=boost::tokenizer_detail::traits_extension&lt;traits_type&gt;<br>1&gt;������� ]<br>1&gt;c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(634) : warning C4996: &#39;std::char_traits&lt;char&gt;::move&#39;: Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ &#39;Checked Iterators&#39;<br>
1&gt;������� c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(477) : see declaration of &#39;std::char_traits&lt;char&gt;::move&#39;<br>1&gt;������� c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(616) : see reference to function template instantiation &#39;char *std::_Traits_helper::move_s&lt;_Traits&gt;(char *,size_t,const char *,size_t,std::_Unsecure_char_traits_tag)&#39; being compiled<br>
1&gt;������� with<br>1&gt;������� [<br>1&gt;����������� _Traits=boost::tokenizer_detail::traits_extension&lt;traits_type&gt;<br>1&gt;������� ]<br>1&gt;������� c:\program files\microsoft visual studio 9.0\vc\include\xstring(1270) : see reference to function template instantiation &#39;char *std::_Traits_helper::move_s&lt;_Traits&gt;(char *,size_t,const char *,size_t)&#39; being compiled<br>
1&gt;������� with<br>1&gt;������� [<br>1&gt;����������� _Traits=boost::tokenizer_detail::traits_extension&lt;traits_type&gt;<br>1&gt;������� ]<br>1&gt;c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(634) : warning C4996: &#39;std::char_traits&lt;wchar_t&gt;::move&#39;: Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ &#39;Checked Iterators&#39;<br>
1&gt;������� c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(362) : see declaration of &#39;std::char_traits&lt;wchar_t&gt;::move&#39;<br>1&gt;������� c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(616) : see reference to function template instantiation &#39;wchar_t *std::_Traits_helper::move_s&lt;_Traits&gt;(wchar_t *,size_t,const wchar_t *,size_t,std::_Unsecure_char_traits_tag)&#39; being compiled<br>
1&gt;������� with<br>1&gt;������� [<br>1&gt;����������� _Traits=boost::tokenizer_detail::traits_extension&lt;traits_type&gt;<br>1&gt;������� ]<br>1&gt;������� c:\program files\microsoft visual studio 9.0\vc\include\xstring(1270) : see reference to function template instantiation &#39;wchar_t *std::_Traits_helper::move_s&lt;_Traits&gt;(wchar_t *,size_t,const wchar_t *,size_t)&#39; being compiled<br>
1&gt;������� with<br>1&gt;������� [<br>1&gt;����������� _Traits=boost::tokenizer_detail::traits_extension&lt;traits_type&gt;<br>1&gt;������� ]<br>1&gt;Compiling manifest to resources...<br>1&gt;Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0<br>
1&gt;Copyright (C) Microsoft Corporation.� All rights reserved.<br>1&gt;Linking...<br>1&gt;LINK : C:\UTM_Coding\Boost_Asio\ASIO_Projects\5_timer_5_strand_multithreaded\Debug\4_strand_multithreaded.exe not found or not built by the last incremental link; performing full link<br>
1&gt;Embedding manifest...<br>1&gt;Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0<br>1&gt;Copyright (C) Microsoft Corporation.� All rights reserved.<br>1&gt;Build log was saved at &quot;<a href="file:///c:/5_timer_5_strand_multithreaded/4_strand_multithreaded/Debug/BuildLog.htm">file://c:\5_timer_5_strand_multithreaded\4_strand_multithreaded\Debug\BuildLog.htm</a>&quot;<br>
1&gt;4_strand_multithreaded - 0 error(s), 8 warning(s)<br>========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========<br></p>