On 05.09.15 08.19, Gerhard Wolf wrote:
> I tried to compile this code with bcc64. it drops an error:
>
> Implicit instantiation of undefined template
> 'std::basic_stringstream<char, std::char_traits<char>,
> std::allocator<char> >'
Works for me. (gcc 4.8.2 @ eCS)
Maybe a compiler bug.
> i changed the line
> scanner s
> to
> scanner * s
> which solved this problem.
This, of course, no longer works since ::std::stringstream* cannot be
initialized from const char*.
> If the prior line compiles with a other compiler is ist a compiler
> feature/setting?
Some compilers need an option to enable C++11. But basic_stringstream
should work anyway. It is quite old.
> This change produces 'member-reference basetype 'T *' is no struct or
> union' errors on all 's' calls.
>
> how can i change this?
Undo the change. It is completely wrong.
Marcel