Hi

I found the solution It was very simple but still does not understand why it 
generate errors.

In Logger class it has operator for template conversion to std::ostream. I 
simply remove address in macro and then it just compile fine.

like here Old code was like this
#define SLOG     \
    static_cast<std::ostream&>(OSG::LogLock(OSG::osgStartLog(true, 
OSG::LOG_LOG,     OSG_LOG_MODULE, __FILE__, __LINE__)))

and i replaced like this

#define SLOG     \
    static_cast<std::ostream>(OSG::LogLock(OSG::osgStartLog(true, 
OSG::LOG_LOG,     OSG_LOG_MODULE, __FILE__, __LINE__)))


So is there any problem with OSG::LogLock Operator problem that returns 
std::ostream ?







----- Original Message ----- 
From: "Carsten Neumann" <[email protected]>
To: <[email protected]>
Sent: Monday, February 02, 2009 6:20 AM
Subject: Re: [Opensg-users] OpenSG 1.x with VS6


> Hello,
>
> naresh wrote:
>> I had tried to compile OpenSG 1.x with VS6 with Intel C++ Compiler 9.0
>> But it gives me some of this errors . I really donot know about these 
>> errors
>>
>>
>> D:\Work\OpenSG 1.x\Source\Base\Base\OSGBaseThread.cpp(659): error:
>> invalid type conversion: "osg::LogLock *" to "std::ostream &"
>>               SFATAL << "OSGWTB : sproc thread failed. Reason: "
>>               ^
>
> hm, I'm tempted to say it is a compiler bug since there is a conversion
> operator from LogLock to the stream. I understand that this statement is
> not very helpful for you of course, but I don't have the intel compilers
> so I'm a bit at a loss what to do.
> If you want to look at the origin of the error, the SFATAL, SWARNING,
> etc. macros are in Source/Base/Base/OSGLog.h.
>
> Has anybody else on the list seen this error? Or had problems with intel
> compilers and user defined conversion operators?
>
> Thanks,
> Carsten
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
> 


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to