-
Notifications
You must be signed in to change notification settings - Fork 8
Extend overloads for arithmetic operators of ExprPtr
#452
New issue
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
Conversation
Krzmbrzl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we could take the chance and extend Variable's ctor such that it can be constructed from a regular (UTF-8) string and then extend the test cases to include a version that uses an arithmetic operator with a UTF-8 string
|
User defined literals seem a match made in heaven for this feature. Binary operation between plain strings and expression objects sounds a little risky to me. Update: meant |
char/wchar types were hitting this ctor, for example in expr + L"w" case
8fc2cdb to
b13233f
Compare
|
The aim is to build expressions where the code reads like the equations. A user-defined literal would get in the way of that. For example, for |
|
Is this okay to merge? |
This requires changes from #452
This requires changes from #452
Further extension of #450: adds operator overloads for
Variable, similar to the existing pattern forConstant.