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

Joel de Guzman joel at boost-consulting.com
Tue Oct 21 19:10:22 CEST 2003


David Abrahams <dave at boost-consulting.com> wrote:
> 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:

This is a known problem of the old tuples. The fix is to change:

namespace {
 detail::swallow_assign ignore;
}

To:

detail::swallow_assign const ignore = detail::swallow_assign();

To avoid linker errors. This is what I do in Fusion.

HTH,
--
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net




More information about the Cplusplus-sig mailing list