Boost logo

Boost :

Subject: Re: [boost] [Containers Library Review] The review of the Containers library by Ion Gaztanaga starts today
From: Michel MORIN (mimomorin_at_[hidden])
Date: 2011-08-05 22:12:59


I tested `libs/container/test` with
  * gcc-4.6.1 in C++03 and C++0x
  * clang (trunk) with libc++ (trunk) in C++03 and C++0x

Then, I got only one problem -- `string_test.cpp` fails to
compile on clang in C++0x.
The errors complain about the location of explicit instantiations:

    string_test.cpp:36:16: error: explicit instantiation of
'boost::container::basic_string'
    must occur in namespace 'boost::container'
    template class basic_string<char, std::char_traits<char>,
DummyCharAllocator>;

    string_test.cpp:37:16: error: explicit instantiation of
'boost::container::basic_string'
    must occur in namespace 'boost::container'
    template class basic_string<wchar_t, std::char_traits<wchar_t>,
DummyWCharAllocator>;

    string_test.cpp:39:16: error: explicit instantiation of
'boost::container::vector' must
    occur in namespace 'boost::container'
    template class vector<DummyString, DummyStringAllocator>;

    string_test.cpp:40:16: error: explicit instantiation of
'boost::container::vector'
    must occur in namespace 'boost::container'
    template class vector<DummyWString, DummyWStringAllocator>;

These errors have gone away by instantiating them in namespace boost::container.


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