mirror of
https://github.com/boostorg/array.git
synced 2025-07-01 06:51:06 +02:00
Replaced boolalpha use with something that the stock gcc library can handle.
[SVN r8659]
This commit is contained in:
@ -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 <iostream>
|
||||
#include <boost/array.hpp>
|
||||
@ -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;
|
||||
|
Reference in New Issue
Block a user