diff --git a/array1.cpp b/array1.cpp index 31639bb..814c9cd 100644 --- a/array1.cpp +++ b/array1.cpp @@ -1,4 +1,8 @@ /* simple example for using class array<> + * + * Changelog: + * 20 Jan 2001 - Removed boolalpha use since stock GCC doesn't support it + * (David Abrahams) */ #include #include @@ -18,7 +22,7 @@ int main() // use some common STL container operations std::cout << "size: " << a.size() << std::endl; - std::cout << "empty: " << std::boolalpha << a.empty() << std::endl; + std::cout << "empty: " << (a.empty() ? "true" : "false") << std::endl; std::cout << "max_size: " << a.max_size() << std::endl; std::cout << "front: " << a.front() << std::endl; std::cout << "back: " << a.back() << std::endl;