[Bug c++/84667] unreasonable refusal to use assignment operator method
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 2 17:31:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84667
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Elmar Stellnberger from comment #0)
> Things work well however if I use the standard constructor instead of an
> assignment:
>
> inline xstrbuf( base_str_const s ) : base_str(
> const_cast<char_type*>(s.chars), s.length ) { bufParams = xstrbuf_constBuf;
> };
Instead of what? Where are we supposed to be looking?
> Any feedback would be very appreciated!
Your code is almost unreadable.
More information about the Gcc-bugs
mailing list