Libc ++ 'nın <bool> :: const_reference vektörü neden bool değil?
Bölüm 23.3.7 Sınıf vector<bool>[vector.bool], paragraf 1 şunu belirtir: template <class Allocator> class vector<bool, Allocator> { public: // types: typedef bool const_reference; ... Ancak bu program libc ++ kullanırken derleme yapamaz: #include <vector> #include <type_traits> int main() { static_assert(std::is_same<std::vector<bool>::const_reference, bool>{}, "?"); } Ayrıca, C ++ standardının bu spesifikasyonda C ++ 98'e …