mirror of
https://github.com/boostorg/array.git
synced 2026-01-20 16:32:08 +00:00
array3.cpp:
- Qualify std::swap for compilers that don't have Koenig lookup array5.cpp: - Don't use std::boolalpha, because it isn't portable [SVN r12463]
This commit is contained in:
@@ -17,7 +17,7 @@ int main()
|
||||
// copy and change order
|
||||
boost::array<std::string,4> seasons_orig = seasons;
|
||||
for (unsigned i=seasons.size()-1; i>0; --i) {
|
||||
swap(seasons.at(i),seasons.at((i+1)%seasons.size()));
|
||||
std::swap(seasons.at(i),seasons.at((i+1)%seasons.size()));
|
||||
}
|
||||
|
||||
std::cout << "one way: ";
|
||||
@@ -25,7 +25,7 @@ int main()
|
||||
|
||||
// try swap()
|
||||
std::cout << "other way: ";
|
||||
swap(seasons,seasons_orig);
|
||||
std::swap(seasons,seasons_orig);
|
||||
print_elements(seasons);
|
||||
|
||||
// try reverse iterators
|
||||
|
||||
Reference in New Issue
Block a user