Paradiseo-eo sources added
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@40 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
bc1f453978
commit
c3aec878e5
3609 changed files with 342772 additions and 0 deletions
26
trunk/paradiseo-eo/test/t-eoBaseFunctions.cpp
Normal file
26
trunk/paradiseo-eo/test/t-eoBaseFunctions.cpp
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
|
||||
#include <eoBaseFunctions.h>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
struct eo1 : public eoF<void>
|
||||
{
|
||||
void operator()(void) {}
|
||||
};
|
||||
|
||||
struct eo2 : public eoF<int>
|
||||
{
|
||||
int operator()(void) { return 1; }
|
||||
};
|
||||
|
||||
int main()
|
||||
{
|
||||
eo1 _1; _1();
|
||||
eo2 _2;
|
||||
int i = _2();
|
||||
|
||||
std::cout << i << '\n';
|
||||
return i;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue