-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1138 from boostorg/rational_macros
Add guards to user configurable macro definitions
- Loading branch information
Showing
3 changed files
with
61 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright Matt Borland 2024. | ||
// Use, modification and distribution are subject to the | ||
// Boost Software License, Version 1.0. (See accompanying file | ||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | ||
// | ||
// See: https://github.com/boostorg/math/issues/1137 | ||
|
||
#define BOOST_MATH_POLY_METHOD 0 | ||
#define BOOST_MATH_RATIONAL_METHOD 0 | ||
|
||
#include <boost/math/tools/config.hpp> | ||
|
||
int main() | ||
{ | ||
static_assert(BOOST_MATH_POLY_METHOD == 0, "User defined as 0"); | ||
static_assert(BOOST_MATH_RATIONAL_METHOD == 0, "User defined as 0"); | ||
|
||
return 0; | ||
} |