[Bf-committers] Boolops and msvc7/scons

Nathan Letwory jesterking at letwory.net
Sun Oct 30 15:44:55 CET 2005


Hi,

I tried the same the other day, and ran into the exact same problem. The
use of const has been a problem in the past (perhaps remember FTGL
problems?). Connected to this is the copy constructer as it is in BOP.
Removing the const helps to a certain extent, the problem is that the copy
constructer is not good anymore

See http://msdn2.microsoft.com/en-us/library/h1925w4w for more info. I've
been looking for a solution too, but I haven't had any luck. C++ gurus
should look into the matter.

/Nathan


>  I am trying to put together the sconscript file for boolops and this is
> what I have so far...
>
[SConsript for boolop]

>
>
> But when I compile, I get the following error...
>
<clipclip>
> C:\Program Files\Microsoft Visual C++ Toolkit
> 2003\include\xutility(1136) : error C2679: binary '=' : no operator f
> ound which takes a right-hand operand of type 'const BOP_Material' (or
> there is no acceptable conversion)
>         C:\Program Files\Microsoft Visual C++ Toolkit
> 2003\include\vector(862) : see reference to function template
>  instantiation 'void
> std::fill<std::vector<_Ty>::_Tptr,_Ty>(_FwdIt,_FwdIt,const _Ty &)' being
> compiled
>         with
>         [
>             _Ty=BOP_Material,
>             _FwdIt=std::vector<BOP_Material>::_Tptr
>         ]
>         C:\Program Files\Microsoft Visual C++ Toolkit
> 2003\include\vector(809) : while compiling class-template mem
> ber function 'void
> std::vector<_Ty>::_Insert_n(std::vector<_Ty>::iterator,std::vector<_Ty>::size_type,const
> _Ty &)'
>
>         with
>         [
>             _Ty=BOP_Material
>         ]
>
> c:\blendercvs\blender\intern\boolop\intern\BOP_MaterialContainer.h(41) :
> see reference to class template in
> stantiation 'std::vector<_Ty>' being compiled
>         with
>         [
>             _Ty=BOP_Material
>         ]
> scons: ***
> [C:\blendercvs\build\win32\intern\boolop\intern\BOP_MaterialContainer.obj]
> Error 2
> scons: building terminated because of errors.





More information about the Bf-committers mailing list