JuliaInterop / Cxx.jl

The Julia C++ Interface
Other
757 stars 108 forks source link

operator== #430

Open hros opened 5 years ago

hros commented 5 years ago

The following gist contains a tiny C++ class with the + and == operators overloaded. Wrapping that class with Cxx works for the plus operator, however for the == operator I'm forced to create a function with the icxx (lines 28-31). Commenting out this function and uncommenting the function on line 27 which is similar to the implementation of the plus operator wrapper results in the following error message: ERROR: LoadError: Could not find `==` in translation unit