jupyter-xeus / xeus-cling

Jupyter kernel for the C++ programming language
BSD 3-Clause "New" or "Revised" License
3.02k stars 292 forks source link

Function Definition Not Allowed Here #442

Open Jason-XII opened 2 years ago

Jason-XII commented 2 years ago

image I'm trying to override the operater < with my struct params. However, cling gives me an error. The code is in the seperate cell. What is wrong? How can I fix it?

LanceGe commented 2 years ago

The name of the function should be "operator<" instead of "operator <".