|
Boost : |
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2006-06-08 18:08:36
Pavol Droba wrote:
> On Thu, Jun 08, 2006 at 06:22:22AM -0700, Jeff Garland wrote:
>>/home/jeff/devTools/boost_rc_1_34/boost/range/const_iterator.hpp:37:
>>error: ???const char*??? is not a class, struct, or union type
>>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>
> Ok, that was just a guess. I'll have a look. But it might help if Thorsten
> would check it out as well.
The line in quetion reads
template< typename C >
struct range_const_iterator
{
typedef BOOST_DEDUCED_TYPENAME C::const_iterator type;
But why isn't
template<>
struct range_const_iterator< const char* >
{
typedef const char* type;
};
picked up?
I don't have any good idea why this is.
I can build the library just fine with
gcc version 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)
Does this simple test work on your compiler:
typedef boost::range_const_iterator<const char*>::type foo = "foo";
?
I have to say, I hate that there is soo many versions of GCC flying around.
-Thorsten
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk