On 11 July 2012 02:48, David Ayers <[email protected]> wrote: > ifstream F(File.c_str(),ios::in /*| ios::nocreate*/); > if (!F != 0) > return _error->Errno("ifstream::ifstream",_("Opening %s"),File.c_str()); > > but the C++ documentation I found says: > If the constructor is not successful in opening the file, the > object is still created although no file is associated to the > stream buffer and the stream's failbit is set (which can be > checked with inherited member fail). > http://www.cplusplus.com/reference/iostream/ifstream/ifstream/
The test is ok. !F is equivalent to F.fail() [1], which effectively makes the test: if (F.fail() != false) [1] http://www.cplusplus.com/reference/iostream/ios/operatornot/ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/852003 Title: USC fails to launch in non-admin user account if there's a private PPA To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/852003/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
