title: std::abs with std::transform not working
body: <p>Take this example:</p>
  
  <pre><code>#include &lt;vector&gt;
  #include &lt;algorithm&gt;
  #include &lt;iostream&gt;
  #include &lt;cstdlib&gt;
  #include &lt;cmath&gt;
  
  void PrintVec(const std::vector&lt;float&gt;&amp;);
  int main(int argc, char * argv[]){
  
  float vals[] = {-1.2,0.0,1.2};
  std::vector&lt;float&gt; test(vals, vals + sizeof(vals) / sizeof(float));
  std::vector&lt;float&gt; absTest(3);
  
  std::transform(test.begin(), test.end(), absTest.begin(), std::abs&lt;float&gt;());
  
  PrintVec(test);
  PrintVec(absTest);
  
  return 0;
  }
  
  void PrintVec(const std::vector&lt;float&gt; &amp;vec){
  for (unsigned int i = 0; i &lt; vec.size(); ++i){
      std::cout &lt;&lt; vec[i] &lt;&lt; '\n';
  }
  return;
  }
  </code></pre>
  
  <p>Using both gcc 4.3.4 and VS 2013 I get compiler errors.  For gcc its: </p>
  
  <blockquote>
    <p>testTransformAbs.cpp:15: error: expected primary-expression before 'float'</p>
  </blockquote>
  
  <p>For VS 2013 its:</p>
  
  <blockquote>
    <p>error C2062: type 'float' unexpected</p>
  </blockquote>
  
  <p>If I remove <code>&lt;float&gt;</code> then I get this error:</p>
  
  <blockquote>
    <p>testTransformAbs.cpp:15: error: no matching function for call to 'abs()'
    /usr/include/stdlib.h:766: note: candidates are: int abs(int)
    /usr/include/c++/4.3/cstdlib:144: note:                 long int std::abs(long int)
    /usr/include/c++/4.3/cstdlib:175: note:                 long long int __gnu_cxx::abs(long long int)
    /usr/include/c++/4.3/cmath:99: note:                 double std::abs(double)
    /usr/include/c++/4.3/cmath:103: note:                 float std::abs(float)
    /usr/include/c++/4.3/cmath:107: note:                 long double std::abs(long double)</p>
  </blockquote>
  
  <p>I can create my own function</p>
  
  <pre><code>float MyAbs(float f){
      return sqrt(f * f);
  }
  
  std::transform(test.begin(), test.end(), absTest.begin(), MyAbs);
  </code></pre>
  
  <p>And everything works.  The reference on cplusplus.com says that the fourth input can be an UnaryOperation defined by:</p>
  
  <blockquote>
    <p>Unary function that accepts one element of the type pointed to by InputIterator as argument, and returns some result value convertible to the type pointed to by OutputIterator.
     This can either be a function pointer or a function object.</p>
  </blockquote>
  
  <p>To me this should be able to use <code>std::abs()</code>.  I also tried <code>fabs</code> with the same result.  What am I missing?</p>