-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed namespaces and std::get<index>, changed the name of the variable
and updated travis config to use gcc 8.
- Loading branch information
Showing
2 changed files
with
53 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I think that if we are making a refactor using std::variant, then it would be cleaner and more performant to also include the operation attributes into the std::variant by first defining them in a separate class/struct boost::real::real_operation.
The operation attributes are:
OPERATION _operation;
real* _lhs_ptr;
real* _rhs_ptr;
Then the std::variant<real_explicit, real_algorithm, real_operation> can be just called like "_abstract_number".
Note: The boost_operation struct/class has a dependency on the real class itself because _lhs_ptr and _rhs_ptr are real* types. Because of this, I think you must define the struct inside the real base class.