Jesper Wolf Jespersen wrote:
> Ellers kan du bruge Gnu C++, den har efter min mening excelente
> fejlmeldinger...
HVAD ?? Har du røget tjald eller sådan noget
gcc /er/ en fed compiler, men lige netop dens fejlmeddelelser ville jeg
nu ikke prale for meget af. Her er et eksempel på en GCC fejlmeddelelse
i et program, hvor jeg har puttet en ekstra '*' på et sted:
usr/include/c++/3.2/bits/stl_iterator_base_types.h: In instantiation o
`std::iterator_traits<std::basic_string<char, std::char_traits<char>,
std::allocator<char> > >':
home/clr/include/boost/lambda/detail/operator_return_type_traits.hpp:2
4: instantiated from `boost::lambda::detail::contentsof_type<std::ba
ic_string<char, std::char_traits<char>, std::allocator<char> > >'
home/clr/include/boost/lambda/detail/lambda_traits.hpp:50: instantia
ed from `boost::lambda::detail::IF_type_<boost::lambda::detail::conten
sof_type<std::basic_string<char, std::char_traits<char>, std::allocato
<char> > > >'
home/clr/include/boost/lambda/detail/lambda_traits.hpp:58: instantia
ed from `boost::lambda::detail::IF_type<true, boost::lambda::detail::c
ntentsof_type<std::basic_string<char, std::char_traits<char>, std::all
cator<char> > >, boost::lambda::detail::identity_mapping<boost::lambda
:detail::unspecified> >'
home/clr/include/boost/lambda/detail/operator_return_type_traits.hpp:3
7: instantiated from `boost::lambda::return_type_1<boost::lambda::ot
er_action<boost::lambda::contentsof_action>, std::basic_string<char, s
d::char_traits<char>, std::allocator<char> >&>'
home/clr/include/boost/lambda/detail/return_type_traits.hpp:92: inst
ntiated from `boost::lambda::return_type_1_prot<boost::lambda::other_a
tion<boost::lambda::contentsof_action>, std::basic_string<char, std::c
ar_traits<char>, std::allocator<char> >&>'
home/clr/include/boost/lambda/detail/operator_lambda_func_base.hpp:84:
instantiated from `boost::lambda::detail::unary_rt<boost::lambda::ot
er_action<boost::lambda::contentsof_action>, boost::tuples::tuple<boos
::lambda::lambda_functor<boost::lambda::placeholder<1> >, boost::tuple
::null_type, boost::tuples::null_type, boost::tuples::null_type, boost
:tuples::null_type, boost::tuples::null_type, boost::tuples::null_type
boost::tuples::null_type, boost::tuples::null_type, boost::tuples::nu
l_type>, boost::tuples::tuple<std::basic_string<char, std::char_traits
char>, std::allocator<char> >&, boost::tuples::null_type, boost::tuple
::null_type, boost::tuples::null_type, boost::tuples::null_type, boost
:tuples::null_type, boost::tuples::null_type, boost::tuples::null_type
boost::tuples::null_type, boost::tuples::null_type> >'
home/clr/include/boost/lambda/detail/operator_lambda_func_base.hpp:253
instantiated from `boost::lambda::lambda_functor_base<boost::lambda
:other_action<boost::lambda::contentsof_action>, boost::tuples::tuple<
oost::lambda::lambda_functor<boost::lambda::placeholder<1> >, boost::t
ples::null_type, boost::tuples::null_type, boost::tuples::null_type, b
ost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_
ype, boost::tuples::null_type, boost::tuples::null_type, boost::tuples
:null_type> >::sig<boost::tuples::tuple<std::basic_string<char, std::c
ar_traits<char>, std::allocator<char> >&, boost::tuples::null_type, bo
st::tuples::null_type, boost::tuples::null_type, boost::tuples::null_t
pe, boost::tuples::null_type, boost::tuples::null_type, boost::tuples:
null_type, boost::tuples::null_type, boost::tuples::null_type> >'
home/clr/include/boost/lambda/detail/lambda_functor_base.hpp:196: in
tantiated from `boost::lambda::detail::deduce_non_ref_argument_types_<
oost::tuples::cons<const boost::lambda::lambda_functor<boost::lambda::
ambda_functor_base<boost::lambda::other_action<boost::lambda::contents
f_action>, boost::tuples::tuple<boost::lambda::lambda_functor<boost::l
mbda::placeholder<1> >, boost::tuples::null_type, boost::tuples::null_
ype, boost::tuples::null_type, boost::tuples::null_type, boost::tuples
:null_type, boost::tuples::null_type, boost::tuples::null_type, boost:
tuples::null_type, boost::tuples::null_type> > >, boost::tuples::null_
ype>, boost::tuples::tuple<std::basic_string<char, std::char_traits<ch
r>, std::allocator<char> >&, boost::tuples::null_type, boost::tuples::
ull_type, boost::tuples::null_type, boost::tuples::null_type, boost::t
ples::null_type, boost::tuples::null_type, boost::tuples::null_type, b
ost::tuples::null_type, boost::tuples::null_type> >'
home/clr/include/boost/lambda/detail/lambda_functor_base.hpp:203: in
tantiated from `boost::lambda::detail::deduce_non_ref_argument_types_<
oost::tuples::tuple<std::string (* const)(std::basic_string<char, std:
char_traits<char>, std::allocator<char> >), const boost::lambda::lambd
_functor<boost::lambda::lambda_functor_base<boost::lambda::other_actio
<boost::lambda::contentsof_action>, boost::tuples::tuple<boost::lambda
:lambda_functor<boost::lambda::placeholder<1> >, boost::tuples::null_t
pe, boost::tuples::null_type, boost::tuples::null_type, boost::tuples:
null_type, boost::tuples::null_type, boost::tuples::null_type, boost::
uples::null_type, boost::tuples::null_type, boost::tuples::null_type>
>, boost::tuples::null_type, boost::tuples::null_type, boost::tuples:
null_type, boost::tuples::null_type, boost::tuples::null_type, boost::
uples::null_type, boost::tuples::null_type, boost::tuples::null_type>,
boost::tuples::tuple<std::basic_string<char, std::char_traits<char>, s
d::allocator<char> >&, boost::tuples::null_type, boost::tuples::null_t
pe, boost::tuples::null_type, boost::tuples::null_type, boost::tuples:
null_type, boost::tuples::null_type, boost::tuples::null_type, boost::
uples::null_type, boost::tuples::null_type> >'
home/clr/include/boost/lambda/detail/lambda_functor_base.hpp:230: in
tantiated from `boost::lambda::detail::deduce_non_ref_argument_types<b
ost::tuples::tuple<std::string (* const)(std::basic_string<char, std::
har_traits<char>, std::allocator<char> >), const boost::lambda::lambda
functor<boost::lambda::lambda_functor_base<boost::lambda::other_action
boost::lambda::contentsof_action>, boost::tuples::tuple<boost::lambda:
lambda_functor<boost::lambda::placeholder<1> >, boost::tuples::null_ty
e, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::
ull_type, boost::tuples::null_type, boost::tuples::null_type, boost::t
ples::null_type, boost::tuples::null_type, boost::tuples::null_type> >
>, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::
ull_type, boost::tuples::null_type, boost::tuples::null_type, boost::t
ples::null_type, boost::tuples::null_type, boost::tuples::null_type>,
oost::tuples::tuple<std::basic_string<char, std::char_traits<char>, st
::allocator<char> >&, boost::tuples::null_type, boost::tuples::null_ty
e, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::
ull_type, boost::tuples::null_type, boost::tuples::null_type, boost::t
ples::null_type, boost::tuples::null_type> >'
home/clr/include/boost/lambda/detail/lambda_functor_base.hpp:403: in
tantiated from `boost::lambda::lambda_functor_base<boost::lambda::acti
n<2, boost::lambda::function_action<2, boost::lambda::detail::unspecif
ed> >, boost::tuples::tuple<std::string (* const)(std::basic_string<ch
r, std::char_traits<char>, std::allocator<char> >), const boost::lambd
::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::oth
r_action<boost::lambda::contentsof_action>, boost::tuples::tuple<boost
:lambda::lambda_functor<boost::lambda::placeholder<1> >, boost::tuples
:null_type, boost::tuples::null_type, boost::tuples::null_type, boost:
tuples::null_type, boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type, boost::tuples::nul
_type> > >, boost::tuples::null_type, boost::tuples::null_type, boost:
tuples::null_type, boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type, boost::tuples::nul
_type> >::sig<boost::tuples::tuple<std::basic_string<char, std::char_t
aits<char>, std::allocator<char> >&, boost::tuples::null_type, boost::
uples::null_type, boost::tuples::null_type, boost::tuples::null_type,
oost::tuples::null_type, boost::tuples::null_type, boost::tuples::null
type, boost::tuples::null_type, boost::tuples::null_type> >'
ormat2.hh:231: instantiated from `std::ostream& detail:
erator<<(s
d::ostream&, const detail::formatter<ITER, T1, T2, T3, T4, T5, FUNC>&)
[with ITER = std::_List_iterator<std::string, std::string&, std::strin
*>, T1 = const char*, T2 = const char*, T3 = const char*, T4 = const c
ar*, T5 = const char*, FUNC = boost::lambda::lambda_functor<boost::lam
da::lambda_functor_base<boost::lambda::action<2, boost::lambda::functi
n_action<2, boost::lambda::detail::unspecified> >, boost::tuples::tupl
<std::string (* const)(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >), const boost::lambda::lambda_functor<boost::la
bda::lambda_functor_base<boost::lambda::other_action<boost::lambda::co
tentsof_action>, boost::tuples::tuple<boost::lambda::lambda_functor<bo
st::lambda::placeholder<1> >, boost::tuples::null_type, boost::tuples:
null_type, boost::tuples::null_type, boost::tuples::null_type, boost::
uples::null_type, boost::tuples::null_type, boost::tuples::null_type,
oost::tuples::null_type, boost::tuples::null_type> > >, boost::tuples:
null_type, boost::tuples::null_type, boost::tuples::null_type, boost::
uples::null_type, boost::tuples::null_type, boost::tuples::null_type,
oost::tuples::null_type, boost::tuples::null_type> > >]'
heck_format.cc:79: instantiated from `std::string str(const T&) [wit
T = detail::formatter<std::_List_iterator<std::string, std::string&,
td::string*>, const char*, const char*, const char*, const char*, cons
char*, boost::lambda::lambda_functor<boost::lambda::lambda_functor_ba
e<boost::lambda::action<2, boost::lambda::function_action<2, boost::la
bda::detail::unspecified> >, boost::tuples::tuple<std::string (* const
(std::basic_string<char, std::char_traits<char>, std::allocator<char>
), const boost::lambda::lambda_functor<boost::lambda::lambda_functor_b
se<boost::lambda::other_action<boost::lambda::contentsof_action>, boos
::tuples::tuple<boost::lambda::lambda_functor<boost::lambda::placehold
r<1> >, boost::tuples::null_type, boost::tuples::null_type, boost::tup
es::null_type, boost::tuples::null_type, boost::tuples::null_type, boo
t::tuples::null_type, boost::tuples::null_type, boost::tuples::null_ty
e, boost::tuples::null_type> > >, boost::tuples::null_type, boost::tup
es::null_type, boost::tuples::null_type, boost::tuples::null_type, boo
t::tuples::null_type, boost::tuples::null_type, boost::tuples::null_ty
e, boost::tuples::null_type> > > >]'
heck_format.cc:194: instantiated from here
usr/include/c++/3.2/bits/stl_iterator_base_types.h:123: no type named
terator_category' in `struct std::basic_string<char,
td::char_traits<char>, std::allocator<char> >'
home/clr/include/boost/lambda/detail/operator_lambda_func_base.hpp: In
member
unction `RET
oost::lambda::lambda_functor_base<boost::lambda::other_action<boost::l
mbda::contentsof_action>,
rgs>::call(A&, B&, C&, Env&) const [with RET = char&, A =
td::basic_string<char, std::char_traits<char>, std::allocator<char> >,
B =
onst boost::tuples::null_type, C = const boost::tuples::null_type, Env
=
onst boost::tuples::null_type, Args =
oost::tuples::tuple<boost::lambda::lambda_functor<boost::lambda::place
older<1>
, boost::tuples::null_type, boost::tuples::null_type,
oost::tuples::null_type, boost::tuples::null_type,
oost::tuples::null_type, boost::tuples::null_type,
Tak for kaffe...
-Claus