#include "precomp.hpp" // Precompiled header. #include #include #include #include #include void main() { using namespace std; typedef boost::icl::closed_interval interval_t; typedef boost::icl::split_interval_set set_t; set_t s; s.clear(); s += interval_t(0x0000, 0xffff); s += interval_t(0xa000, 0xbfff); cout << "BAD: " << hex << s << endl; s.clear(); s += interval_t(0x0000, 0xfffe); s += interval_t(0xa000, 0xbfff); cout << "GOOD: " << hex << s << endl; }