made it clear non-restituted types also get processed

This commit is contained in:
joaquintides
2017-06-10 18:32:52 +02:00
parent 7bc8248188
commit 60b85291e9
2 changed files with 12 additions and 4 deletions
+2 -2
View File
@@ -149,8 +149,8 @@ int main()
//[algorithms_7
const char* comma="";
boost::poly_collection::for_each
<warrior,juggernaut,goblin,std::string,window>( //restituted types
c.begin(),c.end(),[&](const auto& x){
<warrior,juggernaut,goblin>( // restituted types
c.begin(),c.end(),[&](const auto& x){ // loop traverses *all* elements
std::cout<<comma<<x;
comma=",";
});