Subject: [Boost-bugs] [Boost C++ Libraries] #5207: ICL compile errors
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-02-21 15:46:01
#5207: ICL compile errors
-----------------------------------------------------+----------------------
Reporter: John Reid <j.reid@â¦> | Owner: jofaber
Type: Bugs | Status: new
Milestone: To Be Determined | Component: interval
Version: Boost Development Trunk | Severity: Problem
Keywords: |
-----------------------------------------------------+----------------------
See the code for some compilation problems. I haven't checked if there are
other problems with continuous domains or static bounds.
{{{
#include <boost/icl/interval.hpp>
#include <boost/icl/interval_set.hpp>
#include <boost/icl/interval_map.hpp>
namespace icl = ::boost::icl;
void f() {
icl::interval< int > int_interval;
icl::interval_set< int > int_set;
icl::interval_map< int, int > int_map;
icl::interval_map< int, int >::element_type int_element;
icl::interval_map< int, int >::segment_type int_segment;
/// AFAICT none of the following lines compiles and they all
should:
icl::lower( int_interval );
icl::upper( int_interval );
icl::first( int_interval );
icl::last( int_interval );
icl::add( int_set, int_set );
icl::add( int_map, int_map );
icl::subtract( int_set, int_set );
icl::subtract( int_map, int_map );
int_set += int_interval;
icl::disjoint( int_map, int_element );
icl::disjoint( int_map, int_segment );
icl::intersects( int_map, int_segment );
icl::intersects( int_map, int_element );
}
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5207> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:05 UTC