Mittwoch, 15. Dezember 2010

foreach for C++ (II)

In order to bring the foreach comfort from C# to C++ I found the following way to do so:

  1. Using boost library (a must have library for C++ developers)
  2. Go to make BOOST_FOREACH prettier
  3. Add usertype.dat into same directory where devenv.exe resists
  4. Add the words foreach and reverse_foreach to usertype.dat
  5. Restart Visual Studio

image_thumb1
(since no “Code Snippet”-plug-in works I added a screen-shot)

Keine Kommentare: