title: 'for each' is not a member of std. C++11 support already enabled
body: <p>The code from my professor's homework assignment is as follows. This is straight out of the box, I have not modified my professor's code. There is more to the program, but this is where the error happens. Problem line in bold.</p>
  
  <pre><code>std::cout &lt;&lt; "\nAll remaining courses with enrollments:\n";
  allCourses = WSUCourse::getAllCourses();
  std::for_each(
    allCourses.begin(),
    allCourses.end(),
    WSUCoursePrinter());
  </code></pre>
  
  <p>I receive the following error.</p>
  
  <pre><code>g++    -c -g -std=c++11 -MMD -MP -MF "build/Debug/Cygwin_4.x-Windows/main.o.d" -o build/Debug/Cygwin_4.x-Windows/main.o main.cpp
  main.cpp: In member function 'void WSUStudentPrinter::operator()(const WSUStudent*)':
  main.cpp:26:20: error: 'to_string' is not a member of 'std'
         std::cout &lt;&lt; std::to_string(studentPtr-&gt;getUniqueID()) &lt;&lt;
                      ^
  main.cpp: In function 'void test()':
  main.cpp:162:4: error: 'for_each' is not a member of 'std'
      std::for_each(
      ^
  main.cpp:174:4: error: 'for_each' is not a member of 'std'
      std::for_each(
      ^
  nbproject/Makefile-Debug.mk:84: recipe for target 'build/Debug/Cygwin_4.x-Windows/main.o' failed
  </code></pre>
  
  <p>To summarize it, it's exactly like the title. <code>"'For each' is not a member of std"</code>
  I have already enabled standard 11 support in all the IDE's I have compiled it in. On code blocks I put the argument in the compiler settings, in netbeans I changed it under project properties on the compiler, even the linux system on the school's network won't run it, with the same error, and I used the standard 11 inclusion line.</p>
  
  <p>Ideas on how to fix this, anyone? It used to give me the same error for all locations.</p>