We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 255b4ac commit e09ac91Copy full SHA for e09ac91
2 files changed
gecode/float/val.hpp
100644
100755
@@ -358,7 +358,7 @@ namespace Gecode {
358
template<class Char, class Traits>
359
std::basic_ostream<Char,Traits>&
360
operator <<(std::basic_ostream<Char,Traits>& os, const FloatVal& x) {
361
- return os << x.x;
+ return os << '[' << x.min() << ".." << x.max() << ']';
362
}
363
364
forceinline FloatVal
gecode/float/view/print.hpp
@@ -46,9 +46,9 @@ namespace Gecode { namespace Float {
46
std::basic_ostringstream<Char,Traits> s;
47
s.copyfmt(os); s.width(0);
48
if (x.assigned()) {
49
- s << x.med();
+ s << "[[" << x.med() << "]]";
50
} else {
51
- s << '[' << x.min() << ".." << x.max() << ']';
+ s << "[[" << x.min() << ".." << x.max() << "]]";
52
53
return os << s.str();
54
0 commit comments