Plantage sur compilation d'une librairie
Bonjour
j'essaye de compiler une lib (assez grosse) et j'ai une erreurs qui m'échape à la derniere ligne du bout de code suivant
error : expected ')' before '<' token
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
class Problem
{
public:
// Constructors for use with user created Function classes
// NOTE** The Function object supplied is COPIED
template <typename FUNCTION> explicit Problem(const FUNCTION& f) :
ps(0), ups(0)
{
construct_problem_(new FUNCTION(f));
}
// NOTE** The supplied Function and Domain objects are copied
template <typename FUNCTION> Problem(const FUNCTION& f,
const Domain& d) : ps(0), ups(0)
{
construct_problem_(new FUNCTION(f), d);
}
// Constructions for use with Function classes
// generated by UserFunction
// Problem(UserFunction(...));
explicit Problem(std::auto_ptr<Function>);
// NOTE** The supplied Domain object is copied
// Problem(UserFunction(...), const Domain&);
Problem(std::auto_ptr<Function>, const Domain&); |
Si ca peut aider j'ai aussi des erreurs du type : error: 'std::auto_ptr' has not been declared
Si ca parle à quelqu'un, moi j'avoue ne pas y comprendre grand chose
Merci de votre aide