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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1000508

Title:
  PendingMessages member variable of APT's GlobalError class initializes
  as "true" with -std=c++11

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1000508/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to