[C++-sig] Help about warning C4541 in using VC7.1

jack833 jack833 at 163.com
Wed Sep 13 14:44:46 CEST 2006


Oh,I see,thank you for your help!

Stefan Seefeld wrote:
> 
> jack833 wrote:
>> Here is My code . but show out warnning C4541 in VC7.1
>> namespace Unitest
>> {
>> 	namespace UTester
>> 	{
>> 		class UTester
>> 		{
>> 		public:
>> 			UTester(){}
>> 			virtual	~UTester(){}
>> 			std::string Foo(){return "FOO";}
>> 		};
>> 	}
>> }
> 
> This code doesn't appear to have anything to do with boost.python,
> and neither with the error message from VS for that matter.
> 
>> warnning show:
>> E:\ProgramFiles\Microsoft Visual Studio.NET
>> 2003\Vc7\Boost\include\boost\python\object\inheritance.hpp(43) : warning
>> C4541: “dynamic_cast”using option  /GR-  at a Polymorphism 
>> “Unitest::UTester::UTester”;May be result in unpredictable behavior.
>>         E:\ProgramFiles\Microsoft Visual Studio.NET
>> 2003\Vc7\Boost\include\boost\python\object\inheritance.hpp(41) : while
>> compile template class member
>> function“boost::python::objects::dynamic_id_t
>> boost::python::objects::polymorphic_id_generator<T>::execute(void *)”
>>         with
>>         [
>>             T=Unitest::UTester::UTester
>>         ]
>>  
>> can any one help me?
> 
> Well, enable /GR (and /GX, while we are at it, since boost.python may
> throw
> exceptions, too) !
> 
> Regards,
> 		Stefan
> 
> -- 
> 
>       ...ich hab' noch einen Koffer in Berlin...
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig
> 
> 

-- 
View this message in context: http://www.nabble.com/Help-about-warning-C4541-in-using-VC7.1-tf2259871.html#a6284711
Sent from the Python - c++-sig forum at Nabble.com.




More information about the Cplusplus-sig mailing list