Hello! Is there any way to avoid this warning? =========Beginning of the citation============== ------ Build started: Project: [...], Configuration: Debug Win32 ------ Compiling... [...].cpp BOOST_DIR\boost\spirit\core\primitives\impl\pri mitives.ipp(62) : warning C4244: 'initializing' : conversion from '__w64 int' to 'int', possible loss of data BOOST_DIR\boost\spirit\core\primitives\primitiv es.hpp(190) : see reference to function template instantiation 'RT boost::spirit::impl::string_parser_parse<result_t,boost::unwrap_reference<T> ::type,const ScannerT>(IteratorT,IteratorT,const ScannerT &)' being compiled with [ RT=result_t, T=const char *, ScannerT=boost::spirit::scanner<std::basic_string<char,std::char_traits<char ,std::allocator<char>>::iterator,boost::spirit::scanner_policies<boost::spi rit::no_skipper_iteration_policy<boost::spirit::scanner_policies<boost::spir it::iter_policy_t>::iteration_policy_t>,boost::spirit::scanner_policies<boos t::spirit::iter_policy_t>::match_policy_t,boost::spirit::scanner_policies<bo ost::spirit::iter_policy_t>::action_policy_t>>, IteratorT=boost::unwrap_reference<const char *>::type ] [...] Linking... Build Time 0:04 Build log was saved at "file://PROJECT_DIR\Debug\BuildLog.htm" [...] - 0 error(s), 1 warning(s) ---------------------- Done ---------------------- Build: 1 succeeded, 0 failed, 0 skipped =========The end of the citation================ -- With best regards, GIE.
Disable portability problems detection 64bit (Properties -> C/C++ -> General) Maybe this should be added to the FAQ. At 16:04 24/10/2003 +0300, you wrote:
Hello!
Is there any way to avoid this warning?
=========Beginning of the citation============== ------ Build started: Project: [...], Configuration: Debug Win32 ------
Compiling... [...].cpp BOOST_DIR\boost\spirit\core\primitives\impl\pri mitives.ipp(62) : warning C4244: 'initializing' : conversion from '__w64 int' to 'int', possible loss of data
BOOST_DIR\boost\spirit\core\primitives\primitiv es.hpp(190) : see reference to function template instantiation 'RT boost::spirit::impl::string_parser_parse<result_t,boost::unwrap_reference<T> ::type,const ScannerT>(IteratorT,IteratorT,const ScannerT &)' being compiled with [ RT=result_t, T=const char *,
ScannerT=boost::spirit::scanner<std::basic_string<char,std::char_traits<char
,std::allocator<char>>::iterator,boost::spirit::scanner_policies<boost::spi rit::no_skipper_iteration_policy<boost::spirit::scanner_policies<boost::spir it::iter_policy_t>::iteration_policy_t>,boost::spirit::scanner_policies<boos t::spirit::iter_policy_t>::match_policy_t,boost::spirit::scanner_policies<bo ost::spirit::iter_policy_t>::action_policy_t>>, IteratorT=boost::unwrap_reference<const char *>::type ]
[...]
Linking...
Build Time 0:04 Build log was saved at "file://PROJECT_DIR\Debug\BuildLog.htm" [...] - 0 error(s), 1 warning(s)
---------------------- Done ----------------------
Build: 1 succeeded, 0 failed, 0 skipped
=========The end of the citation================
-- With best regards, GIE.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
----------------------------------------------------------------------------------- Jonathan de Halleux, Research Assistant Center for Systems Engineering and Applied Mechanics (CESAME) Universite catholique de Louvain Batiment Euler , Av. Georges Lemaitre, 4 Tel : +32-10-47 2595 B-1348 Louvain-la-Neuve Belgium E-mail : dehalleux@auto.ucl.ac.be -----------------------------------------------------------------------------------
#pragma warning ( disable : 4244 ) ??? -- Jeff Flinn Applied Dynamics, International "GIE" <gie@ukr.net> wrote in message news:000401c39a42$0cdc2960$0107a9c0@giepc...
Hello!
Is there any way to avoid this warning?
=========Beginning of the citation============== ------ Build started: Project: [...], Configuration: Debug Win32 ------
Compiling... [...].cpp BOOST_DIR\boost\spirit\core\primitives\impl\pri mitives.ipp(62) : warning C4244: 'initializing' : conversion from '__w64 int' to 'int', possible loss of data
BOOST_DIR\boost\spirit\core\primitives\primitiv es.hpp(190) : see reference to function template instantiation 'RT
boost::spirit::impl::string_parser_parse<result_t,boost::unwrap_reference<T>
::type,const ScannerT>(IteratorT,IteratorT,const ScannerT &)' being compiled with [ RT=result_t, T=const char *,
ScannerT=boost::spirit::scanner<std::basic_string<char,std::char_traits<char
,std::allocator<char>>::iterator,boost::spirit::scanner_policies<boost::spi
rit::no_skipper_iteration_policy<boost::spirit::scanner_policies<boost::spir
it::iter_policy_t>::iteration_policy_t>,boost::spirit::scanner_policies<boos
t::spirit::iter_policy_t>::match_policy_t,boost::spirit::scanner_policies<bo
ost::spirit::iter_policy_t>::action_policy_t>>, IteratorT=boost::unwrap_reference<const char *>::type ]
[...]
Linking...
Build Time 0:04 Build log was saved at "file://PROJECT_DIR\Debug\BuildLog.htm" [...] - 0 error(s), 1 warning(s)
---------------------- Done ----------------------
Build: 1 succeeded, 0 failed, 0 skipped
=========The end of the citation================
-- With best regards, GIE.
GIE wrote:
Is there any way to avoid this warning?
=========Beginning of the citation============== ------ Build started: Project: [...], Configuration: Debug Win32 ------
Compiling... [...].cpp BOOST_DIR\boost\spirit\core\primitives\impl\pri mitives.ipp(62) : warning C4244: 'initializing' : conversion from '__w64 int' to 'int', possible loss of data
This issue is fixed in the current Spirit version. It will be awailable as Spirit V1.8.0 integrated into the Boost 1.31.0 release. If you can't wait for this release you may: - get the current CVS snapshot from the Spirit repository - or disable the warning (#pragma warning (disable: 4244) or commandline: /wd4244) - or remove the /Wp64 switch from the commandline HTH Regards Hartmut
participants (4)
-
GIE
-
hartmutkaiser@t-online.de
-
Jeff Flinn
-
Jonathan de Halleux