-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor error_helper and around (#4686)
* Modernize the code: - Use universal references - Consistently forward the packs - Ensure we move things passed by value - Use C++17 constructs * Simplify parser_error: switch for variadic functions to variadic templates. Removes some layers of indirection. * Greatly simplify error_helper. Unbreak HasToString while there. * Ensure we do not do extra copy of std::string during toString * Forward-declare big_int * Consolidate all => string conversions in a single place: - prefer dbprint() method for operator<<(ostream&) when present - otherwise, fallback to toString(), if present * Simplify bug_helper more, hide stuff into dedicated namespace to reduce amount of visible overload variants * Unbreak for Boost < 1.84 * Simplify * Silence broken gcc warning * Try to unbreak bazel. Again * FIXME was clarified
- Loading branch information
Showing
23 changed files
with
305 additions
and
350 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
#ifndef LIB_BIG_INT_FWD_H_ | ||
#define LIB_BIG_INT_FWD_H_ | ||
|
||
#include <memory> | ||
|
||
#include <boost/multiprecision/fwd.hpp> | ||
|
||
using big_int = boost::multiprecision::cpp_int; | ||
|
||
#endif /* LIB_BIG_INT_FWD_H_ */ |
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
Oops, something went wrong.