On Mon, Feb 2, 2009 at 12:01 PM, Sean Farrow <sean.farrow@seanfarrow.co.uk> wrote:
Hi:
is it possible to use boost.foreach with boost.array?
Cheers
Sean.


What do you think?

#include <boost/array.hpp>
#include <iostream>
#include <boost/foreach.hpp>

int main( )
{
  boost :: array<char, 6> s = { 'H', 'e', 'l', 'l', 'o', '\n' };
  BOOST_FOREACH( char c, s )
  {
    std :: cout << c;
  }
  std :: cout << "\n";

}


--
ACCU - Professionalism in programming - http://www.accu.org