What happened to std::min and ?

MirJafar Ali mirjafarali at gmail.com
Tue Sep 29 21:55:36 UTC 2009


Hi,

Recently I upgraded my OS to the Ubuntu 9.04 from jaunty and it has g++4.3.3
and some codes which were happily
working for years suddenly stumbled upon as simple code as
#include <stdlib.h>

#include <stdio.h>
using namespace std;

int main()
{
   int n = 10;
   int m = 10;
   int k = std::min(n,m);
}

error: expected unqualified-id before ‘)’

or in some cases:

error: ‘min’ is not a member of ‘std’

What happended to these functions in the latest compilers ?


Mir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090929/5d30dc8b/attachment.html>


More information about the ubuntu-users mailing list