-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[14x-comb2023] Support ROOT 6.30 and C++20 (#892)
* Fix errors and warnings with C++20 in `FastTemplate.h` The destructor and assignment operators are not allowed to include template specializations in C++20. They were not needed anyway, because the class itself is templated. Also, generalize the assignment operators to take `TH1` and check for the dimension at runtime. This is necessary to avoid other compiler warnings, such as: ``` interface/FastTemplate.h:123:34: warning: ‘FastTemplate_t<T>& FastTemplate_t<T>::operator=(const TH1&) [with T = double]’ was hidden [-Woverloaded-virtual=] 123 | virtual FastTemplate_t & operator=(const TH1 &other) { | ^~~~~~~~ interface/FastTemplate.h:284:24: note: by ‘FastHisto2D_t<double>::operator=’ 284 | FastHisto2D_t& operator=(const TH2 &other) { ``` That is a very valid warning! `FastHisto2D_t` inherits from `FastTemplate_t`, and it's not good if their assignment operators take different types. * Add missing include to compile with ROOT `master` * Avoid `operator-` on TComplex and RooRealProxy This will not work anymore in ROOT 6.30. The `double` value needs to be retrieved from the proxy first.
- Loading branch information
1 parent
7dbb213
commit f063bbf
Showing
3 changed files
with
45 additions
and
22 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
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