Boost logo

Boost :

Subject: Re: [boost] [template_profiler]redef template_profiler_test
From: Larry Evans (cppljevans_at_[hidden])
Date: 2009-02-12 13:22:54


On 02/12/09 11:01, Steven Watanabe wrote:
> AMDG
>
> Larry Evans wrote:
>>> However, now I'm getting an error in the rtp file:
>>>
>>> from and_seq_find_if.cpp:2:
>>> /usr/include/c++/4.2/bits/stl_relops.h:74: error: redefinition of
>>> 'struct std::template_profiler_test'
>>> /usr/include/c++/4.2/x86_64-linux-gnu/bits/c++config.h:149: error:
>>> previous definition of 'struct std::template_profiler_test'
>>>
>>> Should I be concerned? stl_relops.h:74 is just:
>>>
>>> _GLIBCXX_BEGIN_NAMESPACE(std)
>>>
>> The .cpp was modified by uncommenting the
>> #include <and_seq_instances.hpp>
>> and that file is attached.
>
> It sounds like the perl script is mishandling namespaces.
> Can you post that line from the preprocessed source?
> (Should be and_seq_find_if.cpp in the build directory)
[snip]
Sure, here's that line and some context:

namespace std __attribute__ ((__visibility__ ("default"))) {
PROFILE_TRACER();
# 161 "/usr/include/c++/4.2/x86_64-linux-gnu/bits/c++config.h" 3
}
# 66 "/usr/include/c++/4.2/utility" 2 3
# 1 "/usr/include/c++/4.2/bits/stl_relops.h" 1 3
# 74 "/usr/include/c++/4.2/bits/stl_relops.h" 3
namespace std __attribute__ ((__visibility__ ("default"))) {
PROFILE_TRACER();

   namespace rel_ops
   {
# 90 "/usr/include/c++/4.2/bits/stl_relops.h" 3
     template <class _Tp>
       inline bool
       operator!=(const _Tp& __x, const _Tp& __y)
       { PROFILE_TRACER(); return !(__x == __y); }
#


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