2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-19 16:32:16 +00:00
Files
python/pyste/example/operator.pyste
nobody f5af86616d This commit was manufactured by cvs2svn to create tag
'merged_to_RC_1_30_0'.

[SVN r19627]
2003-08-16 01:05:44 +00:00

13 lines
207 B
Plaintext

Include('iostream')
test = Wrapper('sum',
'''
const C sum(const C&, const C&)
{
std::cout << "sum!" << std::endl;
return C();
}
'''
)
C = Class('C', 'operator.h')
set_wrapper(C.operator['+'], test)