git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@12154 626c5289-ae23-0410-ae9c-e8d60b6d4f22
18 lines
413 B
OpenEdge ABL
18 lines
413 B
OpenEdge ABL
/* This testcase checks whether SWIG correctly parses function objects
|
|
and the templates for the functions (signature).
|
|
Function objects are objects which overload the operator() function. */
|
|
%module cpp0x_function_objects
|
|
|
|
%inline %{
|
|
//function<int ( int, int )> pF; // not supported yet by the compiler
|
|
|
|
struct Test {
|
|
int value;
|
|
|
|
void operator()(short x, short y) {
|
|
value=10;
|
|
}
|
|
|
|
} test;
|
|
%}
|
|
|