26 lines
No EOL
330 B
C++
26 lines
No EOL
330 B
C++
|
|
#include <eoBaseFunctions.h>
|
|
|
|
#include <iostream>
|
|
|
|
using namespace std;
|
|
|
|
struct eo1 : public eoProcedure<void>
|
|
{
|
|
void operator()(void) {}
|
|
};
|
|
|
|
struct eo2 : public eoProcedure<int>
|
|
{
|
|
int operator()(void) { return 1; }
|
|
};
|
|
|
|
int main()
|
|
{
|
|
eo1 _1; _1();
|
|
eo2 _2;
|
|
int i = _2();
|
|
|
|
cout << i << '\n';
|
|
return i;
|
|
} |