|
Boost : |
From: Richard Hadsell (hadsell_at_[hidden])
Date: 2002-06-19 15:46:38
Richard Hadsell wrote:
>
> These are the errors for the first compile that fails:
>
> cxx -o generic/boost_regex/cregex.o -c -O -I../../../ -arch ev6 -ieee -assume
> trusted_short_alignment -std ansi -nousing_std -D__USE_STD_IOSTREAM -ptr
> generic/boost_regex/cxx_repository ../src/cregex.cpp
> cxx: Error: ../../../boost/regex/detail/instances.hpp, line 104: no instance
> of overloaded function "boost::reg_expression<charT, traits,
> Allocator>::reg_expression [with charT=char,
> traits=boost::regex_traits<char>, Allocator=std::allocator<char>]"
> matches the specified type
> template
> reg_expression<BOOST_REGEX_CHAR_T>::reg_expression<BOOST_REGEX_CHAR_T>(const
> BOOST_DEFAULT_ALLOCATOR(BOOST_REGEX_CHAR_T)&);
> ---------^
> ...
I can fix the problem by changing lines 104-7 in instances.hpp, eliminating the
template specification <BOOST_REGEX_CHAR_T> after the constructor. E.g., change
line 104 to:
template reg_expression<BOOST_REGEX_CHAR_T>::reg_expression(const
BOOST_DEFAULT_ALLOCATOR(BOOST_REGEX_CHAR_T)&);
I don't know whether the compiler is wrong or whether this change might break
the code for other compilers. If the compiler is at fault, I will report it to
Digipaqard (or whatever they are calling themselves this week).
-- Dick Hadsell 914-259-6320 Fax: 914-259-6499 Reply-to: hadsell_at_[hidden] Blue Sky Studios http://www.blueskystudios.com 44 South Broadway, White Plains, NY 10601
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk