I can confirm this as long as APT isn't build with the -std=c++11 flag, too. [0]
The boolean is properly initialized in the (only) constructor to false, so this doesn't make that much sense.
[0] It fails to build currently, but the fix is simple:
Compiling http.cc to ../build/obj/methods/http.o
http.cc: In member function ‘void HttpMethod::SendReq(pkgAcqMethod::FetchItem*, CircleBuf&)’:
http.cc:761:41: error: unable to find string literal operator ‘operator"" PACKAGE_VERSION’
make[1]: *** [../build/obj/methods/http.o] Fehler 1
Just add spaces around the constant - the c++11 standard requires it. (same for https.cc)
After these two fixes APT builds happily (tested on debian gcc4.7.0-8) - also it's testcases which are executed at buildtime: test/libapt/globalerror_test.cc which doesn't fail, so everything seems to be fine then.
I can confirm this as long as APT isn't build with the -std=c++11 flag, too. [0]
The boolean is properly initialized in the (only) constructor to false, so this doesn't make that much sense.
[0] It fails to build currently, but the fix is simple: obj/methods/ http.o :SendReq( pkgAcqMethod: :FetchItem* , CircleBuf&)’: obj/methods/ http.o] Fehler 1
Compiling http.cc to ../build/
http.cc: In member function ‘void HttpMethod:
http.cc:761:41: error: unable to find string literal operator ‘operator"" PACKAGE_VERSION’
make[1]: *** [../build/
Just add spaces around the constant - the c++11 standard requires it. (same for https.cc)
After these two fixes APT builds happily (tested on debian gcc4.7.0-8) - also it's testcases which are executed at buildtime: test/libapt/ globalerror_ test.cc which doesn't fail, so everything seems to be fine then.