forked from boostorg/array
Replaced boolalpha use with something that the stock gcc library can handle.
[SVN r8659]
This commit is contained in:
1 parent
a673bc6e82
commit
aac83e6667
1 file changed
+5
-1
+5
-1
@@ -1,4 +1,8 @@
|
|||||||
/* simple example for using class array<>
|
/* 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 <iostream>
|
||||||
#include <boost/array.hpp>
|
#include <boost/array.hpp>
|
||||||
@@ -18,7 +22,7 @@ int main()
|
|||||||
|
|
||||||
// use some common STL container operations
|
// use some common STL container operations
|
||||||
std::cout << "size: " << a.size() << std::endl;
|
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 << "max_size: " << a.max_size() << std::endl;
|
||||||
std::cout << "front: " << a.front() << std::endl;
|
std::cout << "front: " << a.front() << std::endl;
|
||||||
std::cout << "back: " << a.back() << std::endl;
|
std::cout << "back: " << a.back() << std::endl;
|
||||||
|
|||||||
Reference in new issue
Block a user