Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2002-10-23 10:18:36


"Peter Dimov" <pdimov_at_[hidden]> writes:

> From: "Aleksey Gurtovoy" <agurtovoy_at_[hidden]>
> > Here's an implementation that works with Comeau C/C++ 4.3.0.1, Intel C++
> 6.0
> > and, surprisingly, MSVC 6.5 (after getting rid of partial specialization,
> of
> > course; not shown here):
>
> is_incomplete can never work. It violates ODR. ;-) Nice trick though.

Maybe you can play some trick with the unnamed namespace?
As long as you don't complete the type after instantiating
is_incomplete...
Hmm, sounds like a hack.

-- 
                    David Abrahams
dave_at_[hidden] * http://www.boost-consulting.com
Building C/C++ Extensions for Python: Dec 9-11, Austin, TX
http://www.enthought.com/training/building_extensions.html

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk