On 8/2/2013 10:09 PM, Brian Smith wrote:
2. It is reasonable to expect that std::whatever works as the C++ standard says it should. It isn't reasonable to expect mozilla::Whatever to work exactly like std::whatever. And, often, mozilla::Whatever isn't actually the same as std::whatever
Judging by the recent record of std::atomic and the investigations into std::is_pod, this is not necessarily the case. STLport's std::is_pod does not return the correct answer for classes (i.e., the use case you probably most care about). Our ability to use std::atomic from libstdc++ has been steadily reduced due to it not supporting the feature set we want; just recently, we now require libstdc++ 4.7 to use it so we can get it to work with enums. Granted, <atomic> and <type_traits> are probably the most compiler-dependent headers of the lot, but it goes to show that just because it is implemented by a standard library doesn't mean it is correctly implemented.
-- Joshua Cranmer Thunderbird and DXR developer Source code archæologist _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform