summaryrefslogtreecommitdiff
path: root/src/util/roundingmode.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/roundingmode.h')
-rw-r--r--src/util/roundingmode.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/util/roundingmode.h b/src/util/roundingmode.h
index 06b2b54cd..f4edbd00b 100644
--- a/src/util/roundingmode.h
+++ b/src/util/roundingmode.h
@@ -19,6 +19,8 @@
#include <fenv.h>
+#include <iosfwd>
+
namespace cvc5 {
#define CVC5_NUM_ROUNDING_MODES 5
@@ -26,7 +28,7 @@ namespace cvc5 {
/**
* A concrete instance of the rounding mode sort
*/
-enum RoundingMode
+enum class RoundingMode
{
ROUND_NEAREST_TIES_TO_EVEN = FE_TONEAREST,
ROUND_TOWARD_POSITIVE = FE_UPWARD,
@@ -46,6 +48,8 @@ struct RoundingModeHashFunction
inline size_t operator()(const RoundingMode& rm) const { return size_t(rm); }
}; /* struct RoundingModeHashFunction */
+std::ostream& operator<<(std::ostream& os, RoundingMode s);
+
} // namespace cvc5
#endif
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback