This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
No Subject
- From: Miloslav GRUNDMANN <grundman at mip dot ups-tlse dot fr>
- Date: Sat, 1 Nov 1997 18:10:55 +0100
- Apparently-To: egcs-bugs at cygnus dot com
//
// with -DTEMPLATE the compiler does not compile
//
#include <vector.h>
#include <algo.h>
template <class T> class Expr
{
public :
Expr(){};
Expr(const T&){};
};
#ifdef TEMPLATE
template <class T >
inline bool compare(const Expr<T> a, const Expr<T> b){ return true; };
#else
inline bool compare(const Expr<int> a, const Expr<int> b){ return true; };
#endif
void main()
{
vector<int> a(3);
sort( a.begin(), a.end(), compare );
}