Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-07-30 10:13:48


"Arkadiy Vertleyb" <vertleyb_at_[hidden]> writes:

> Neither compiler reported any ODR violation.
>
> So I invite you to take another look at the simplified registration process.
> Another small addition was two macros:
>
> BOOST_TYPEOF_TPL(expr), and
> BOOST_AUTO_TPL(var, expr)
>
> that are intended to be used in templates, when the expression depends on
> template parameters. These macros take care of adding or not adding the
> "typname" keyword depending on whether typeof is emulated, or the native one
> is used.

We should try this stuff out with EDG-based compilers in their
"template repository" link-time-instantiation mode. Also I think
Metrowerks now supports the same thing. These are the most likely
configurations to report problems from ODR violations.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

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