We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
operator+
Operators like operator+ don't work in cppyy if they are implemented as template functions.
import cppyy cppyy.cppdef(""" template<class T> struct Foo { Foo(T v) : val{v} {} T val; }; template <class T> Foo<T> operator+(Foo<T> const &a, Foo<T> const &b) { return Foo<T>{a.val + b.val}; } """) klass = cppyy.gbl.Foo["int"] a = klass(4) b = klass(7) a + b
At least ROOT 6.04 according to original Jira ticket: https://its.cern.ch/jira/browse/ROOT-7717
Build master from source
master
Arch Linux
The text was updated successfully, but these errors were encountered:
guitargeek
No branches or pull requests
Description
Operators like
operator+
don't work in cppyy if they are implemented as template functions.Reproducer
ROOT version
At least ROOT 6.04 according to original Jira ticket:
https://its.cern.ch/jira/browse/ROOT-7717
Installation method
Build
master
from sourceOperating system
Arch Linux
Additional context
The text was updated successfully, but these errors were encountered: