Boost logo

Boost :

From: Fernando Cacciola (fcacciola_at_[hidden])
Date: 2001-09-26 12:45:32

Here comes a 'user' post:

I've recently started to use the tuple library to change some old code in
one of my projects.
Tuples are used by some headers that at some point must be precompiled
(otherwise compilation time will be prohibiting);
but with Borland 5.5.1 the header 'tuple_basic.hpp' cannot be included in a
precompiled header due to the static global variable 'ignore'.

Is there any workaround?

The thing I HAD to do in order to go on was to change 'ignore' from a global
variable into a free function, but of course this changes the semantics.

// "ignore()" allows tuple positions to be ignored when using "tie".

namespace {
   inline detail::tuples::swallow_assign ignore() { return
detail::tuples::swallow_assign() ; }

BTW: In which namespace is 'ignore' supposed to go? I'm confused... (or
Borland is confused because it puts ignore in boost)

Fernando Cacciola
Sierra s.r.l.

Boost list run by bdawes at, gregod at, cpdaniel at, john at