Pythy
Pythy copied to clipboard
Extensiton of Pythy to use it as member function?
Are there any plans to make it possible to use PYTHY as member function? As in this example:
#include "pythy.h"
#include <iostream>
struct A{
int x;
PYTHY(min, y)(
return x < y ? x : y;
)
};
int main(int argc, char* argv[]) {
A a = {5};
std::cerr << a.min(1) << '\n';
}
Thanks,