[C++-sig] Re: Duplicate "ignore"(again...) and more. (Latest CVS, VC .NET 2003)

David Abrahams dave at boost-consulting.com
Tue Oct 21 18:25:38 CEST 2003


Kerim,

This report should probably go to the main Boost developers' list.  A
small reproducible test case would also help a lot.

Thanks,
Dave


Kerim Borchaev <warkid at hotbox.ru> writes:

> Hello c++-sig,
>
> As I get it VC7.1 also has this bug with anonymous namespace:
>
> ... : error LNK2005:
> "struct swallow_assign::boost::detail::swallow_assign
> boost::tuples::`anonymous namespace'::ignore"
> ... already defined in ...
>
> I've read the archives and found that this bug has already been fixed
> for Visual C version <=7 in tuple_basic_no_partial_spec.hpp:
>
>     namespace {
> #if (defined(BOOST_MSVC) && BOOST_MSVC <= 1300) || (defined(__DECCXX_VER) && __DECCXX_VER <= 60590031)
>       static
> #endif 
>       detail::swallow_assign ignore;
>     }
>
> But VC7.1 is compiled with tuple_basic.hpp that has no such
> a workaround.
>
> And another one:
> ... : error LNK2005:
> "class boost::arg<6> `anonymous namespace'::_6"
> ... already defined in ...
>
> fixes if BOOST_MSVC <= 1300  replaced with BOOST_MSVC <= 1310 in
> boost/bind/placeholders.hpp line 39
>
> It would be nice if the patch was supplied by someone with knowledge
> of how to do it:-)
>
> Best regards,
>  Kerim                          mailto:warkid at hotbox.ru

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com





More information about the Cplusplus-sig mailing list