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

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


About hfrmobile

Nice guy but with a sarcastic type of humor. I have combined hobby and profession and I am happy about this. At the moment I am holding MCP, MCSE (NT 4.0), MCTS and MCPD certificates. Having experience in developing software for more than 15 years. Started learning programming using Pascal, Assembler, C/C++. Also having experience with non-Microsoft products / programming languages (e.g. PHP). Most experiences at the moment: MySQL, MS-SQL, PL/SQL, ASP.NET, C#, Silverlight (Windows Phone) and WPF.
This entry was posted in Allgemein. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s