Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

11
  • Don't specify function template arguments. Just std::min(A::MY_CONST, b), it's cleaner.
    – Kerrek SB
    Commented Jun 6, 2013 at 8:46
  • @KerrekSB - in general you are right. I modified this example from my code. There b was not int and therefore I needed to explicitly specify the template argument.
    – user2379182
    Commented Jun 6, 2013 at 8:51
  • 2
    How did you build this? I cannot reproduce the problem with gcc 4.7.3. Commented Jun 6, 2013 at 8:55
  • 1
    Compiles just fine: ideone.com/2LlrHt
    – djf
    Commented Jun 6, 2013 at 8:56
  • 1
    "I modified this example from my code." => But did you check at least that you actually get the posted error with your posted code? (I ask because I can't reproduce the error.)
    – gx_
    Commented Jun 6, 2013 at 8:57