$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Steven Watanabe (steven_at_[hidden])
Date: 2007-11-07 17:50:34
AMDG
Michael Marcin <mmarcin <at> method-solutions.com> writes:
>
> namespace boost
> {
> namespace ptr_container_detail
> {
> const char* const count = "count";
> const char* const item = "item";
> const char* const first = "first";
> const char* const second = "second";
> }
> }
>
Alas, that only replace one form of ODR violation
with more subtle one.
static const char* count = "count";
void foo(const char*);
inline void bar() {
// ODR violation here. count refers to
// different objects in different translation
// units. (See section 3.2/5 of the standard.)
foo(count);
}
In Christ,
Steven Watanabe