3 Apr
2008
3 Apr
'08
8:47 a.m.
Pavol Droba skrev:
Hi,
char* is not longer supported as a default range type by the range library. you can use const char* literals only.
You can pass char* only if you convert it to a range using as_literal or as_array helpers, that are part of the range library.
We have to change this since thare were ambiguieties in char* usage.
Best regards, Pavol.
L Pocaille wrote:
The following code was working in boost 1.34
char smurf_name[512]; strcpy(smurf_name, "Schtroumpf"); bool samething= boost::iequals("Schtroumpf", smurf_name); assert(samething);
but it no longer works in 1.35.
Pavol, why don't you use as_literal() internally in the string library? Would that not preserve the behavior? -Thorsten