[C++-sig] Re: [boost] function/function_template.hpp

David Abrahams david.abrahams at rcn.com
Sun Jul 21 13:08:01 CEST 2002


BTW, this wasn't a vc7-specific error. I don't know how anyone missed
seeing it with msvc6; maybe it only get stimulated by the Python library.

In any case, I've checked in this patch as a workaround until Doug can look
at it more closely:

*** function_template.hpp.~1.41.~ Sun Jul 21 00:48:07 2002
--- function_template.hpp Sun Jul 21 06:59:15 2002
***************
*** 339,347 ****
      }

      // Assignment from another BOOST_FUNCTION_FUNCTION
!     void set(const BOOST_FUNCTION_FUNCTION& f,
!              int deprecated = 0)
      {
        if (&f == this)
          return;

--- 339,347 ----
      }

      // Assignment from another BOOST_FUNCTION_FUNCTION
!     void set(const BOOST_FUNCTION_FUNCTION& f)
      {
+       int deprecated;
        if (&f == this)
          return;


-Dave

----- Original Message -----
From: "Victor A. Wagner, Jr." <vawjr at rudbek.com>
To: <boost at lists.boost.org>
Sent: Sunday, July 21, 2002 3:34 AM
Subject: Re: [boost] function/function_template.hpp


> Sorry it took so long... I'd forgotten that *nix is case sensitive and
> couldn't figure out why
> bjam -s"tools=VC7"
> kept trying to use all the compilers instead of just VC7
> at any rate when I finally typed
> bjam -s"TOOLS=VC7" it built regex, then started getting errors on
python...
> here's one of the errors
>
>
>      CALL "C:\Program Files\Microsoft Visual Studio
> .NET\Vc7\bin\VCVARS32.BAT" >nul
>      "C:\Program Files\Microsoft Visual Studio .NET\Vc7\bin\cl"  /Zm400
> -nologo -GX -c  -DBOOST_PYTHON_DYNAMIC_LIB  /Z7 /Od /Ob0 /GX /GR
> /MDd   -I"libs\python\bu
> ild"  -I"C:\Boost Releases\boost"
> -I"c:\Python22\include"
> -Fo"libs\python\build\bin\boost_python.dll\VC7\debug\runtime-link-dynamic
\extension_class.obj"
> -Tp"
> libs\python\build\../src\extension_class.cpp"
>
> ...failed vc-C++
>
libs\python\build\bin\boost_python.dll\VC7\debug\runtime-link-dynamic\exten
sion_class.obj...
> vc-C++
>
libs\python\build\bin\boost_python.dll\VC7\debug\runtime-link-dynamic\funct
ions.obj
> functions.cpp
> C:\Boost Releases\boost\boost\function\function_template.hpp(344) : error
> C2572: 'boost::function0<R,Policy,Mixin,Allocator>::set' : redefinition
of
> default par
> ameter : parameter 2
>          with
>          [
>              R=void,
>              Policy=boost::empty_function_policy,
>              Mixin=boost::empty_function_mixin,
>              Allocator=int
>          ]
>          C:\Boost
Releases\boost\boost\function\function_template.hpp(342)
> : see declaration of 'boost::function0<R,Policy,Mixin,Allocator>::set'
>          with
>          [
>              R=void,
>              Policy=boost::empty_function_policy,
>              Mixin=boost::empty_function_mixin,
>              Allocator=int
>          ]
>          C:\Boost Releases\boost\boost\python\errors.hpp(23) : see
> reference to class template instantiation
> 'boost::function0<R,Policy,Mixin,Allocator>' being c
> ompiled
>          with
>          [
>              R=void,
>              Policy=boost::empty_function_policy,
>              Mixin=boost::empty_function_mixin,
>              Allocator=int
>          ]
>
>
>
> At Saturday 2002/07/20 15:40, you wrote:
> >On Saturday 20 July 2002 03:05 pm, Victor A. Wagner, Jr. wrote:
> > > Last evening (PST) I updated all the boost files from CVS and
attempted to
> > > rebuild (VC7) the libraries.
> > > I got errors in function/function_template.hpp when building the
python
> > > library.
> > >
> > > J:\Common\boost_from_CVS\boost\function>cvs update -D07/19/2002
> > > sufficed to "roll back" function_template.hpp
> > > and the build then worked properly
> >
> >I've been making some changes to function/function_template.hpp and for
a
> >short while (maybe 1/2 hour) it was broken on MSVC. Everything is
working
> >properly now on MSVC 6.0sp5, but I can't test MSVC 7.0 locally. Would
someone
> >check if the current CVS version of function works properly with MSVC 7?
> >
> >         Doug
> >_______________________________________________
> >Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost
>
> Victor A. Wagner Jr.      http://rudbek.com
> PGP RSA fingerprint = 4D20 EBF6 0101 B069 3817 8DBF C846 E47A
> PGP D-H fingerprint = 98BC 65E3 1A19 43EC 3908 65B9 F755 E6F4 63BB 9D93
> The five most dangerous words in the English language:
>                "There oughta be a law"
>
> _______________________________________________
> Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost
>






More information about the Cplusplus-sig mailing list