Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-08-26 20:56:18 +0200
committerMartin Hořeňovský2021-08-26 21:27:43 +0200
commitff0a5227caf84d466e3c9c8d6b58469d651e5268 (patch)
treefae017eebef8b671741a0c4b7490a70c8aee2d04 /src
parent54edab53bf38260a60e42e6faf73ce15b7224fe0 (diff)
downloadcatch3-ff0a5227caf84d466e3c9c8d6b58469d651e5268.tar.gz
Make Approx::operator() const
Closes #2273
Diffstat (limited to 'src')
-rw-r--r--src/catch2/catch_approx.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/catch2/catch_approx.hpp b/src/catch2/catch_approx.hpp
index 8f0e6327..7c3a17c0 100644
--- a/src/catch2/catch_approx.hpp
+++ b/src/catch2/catch_approx.hpp
@@ -30,7 +30,7 @@ namespace Catch {
Approx operator-() const;
template <typename T, typename = std::enable_if_t<std::is_constructible<double, T>::value>>
- Approx operator()( T const& value ) {
+ Approx operator()( T const& value ) const {
Approx approx( static_cast<double>(value) );
approx.m_epsilon = m_epsilon;
approx.m_margin = m_margin;