Associated revisions

which segfaults when using libstdc++ and g++ version 4.6.3 on DebianGNU/Linux. It is replaced with

(*out) += '\0';

to avoid the bugous implicit conversion. There is no append(charT)method in C++98 or C++11, which means it relies on an implicitconversion that is bugous. It would be better to rely on thebasic_string& operator+=(charT c); method as defined in ISO 14882-1998(page 385) thru ISO 14882-2012 (page 640)

A set of tests is added to generate and parse object names. They needaccess to the private function lfn_parse_object_name because there isno convenient protected method to exercise it. The tests contain aLFNIndex derived class, TestWrapLFNIndex which is made a friend ofLFNIndex to gain access to the private methods.

History

There is no append(charT) method in C++98 or C++11, which means it relies on an implicit conversion that is bugous. It would be better to rely on the basic_string& operator+=(charT c); method as defined in ISO 14882-1998 (page 385) thru ISO 14882-2012 (page 640)