Subject: [Boost-bugs] [Boost C++ Libraries] #2037: concept_check fails with types declared in unnamed namespace
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-06-23 08:47:35
#2037: concept_check fails with types declared in unnamed namespace
--------------------------+-------------------------------------------------
Reporter: Stephan | Owner: jsiek
Type: Bugs | Status: new
Milestone: Boost 1.36.0 | Component: concept_check
Version: Boost 1.35.0 | Severity: Problem
Keywords: |
--------------------------+-------------------------------------------------
after upgrading to gcc 4.2.3 the following snippet fails to compile
{{{
#include <boost/concept_check.hpp>
struct MyVisitor{};
namespace test{ struct MyVisitor{};}
namespace{ struct MyVisitorAnon{};}
int main(){
using namespace boost;
function_requires<CopyConstructible<MyVisitor> >();
function_requires<CopyConstructible<test::MyVisitor> >();
function_requires<CopyConstructible<MyVisitorAnon> >(); //this
linebreaks the build
return 0;
}
}}}
The error message is attached.
Is this a problem of gcc or concept_check?
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/2037>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:58 UTC