Opened 6 years ago

Last modified 6 years ago

#12648 new Bugs

Missing includes in boost/icl/left_open_interval.hpp

Reported by: Vincenzo Giovanni Comito <clynamen@…> Owned by: Joachim Faulhaber
Milestone: Boost 1.62.0 Component: ICL
Version: Boost 1.62.0 Severity: Problem
Keywords: header missing Cc:

Description

This example does not compile

#include <boost/icl/left_open_interval.hpp>

int main(int argc, char** argv) {
  return 0;
}

compilation result:

In file included from /usr/include/boost/config.hpp:61:0,
                 from /usr/include/boost/concept/assert.hpp:7,
                 from /usr/include/boost/icl/left_open_interval.hpp:12,
                 from main.cpp:1:
/usr/include/boost/icl/type_traits/rep_type_of.hpp:36:9: error: ‘is_same’ was not declared in this scope
         BOOST_STATIC_CONSTANT(bool,

Change History (2)

in reply to:  description ; comment:1 by Vincenzo Giovanni Comito <clynamen@…>, 6 years ago

Adding

#include <boost/icl/interval.hpp>

make it work, but it should not be needed.

Replying to Vincenzo Giovanni Comito <clynamen@…>:

This example does not compile

#include <boost/icl/left_open_interval.hpp>

int main(int argc, char** argv) {
  return 0;
}

compilation result:

In file included from /usr/include/boost/config.hpp:61:0,
                 from /usr/include/boost/concept/assert.hpp:7,
                 from /usr/include/boost/icl/left_open_interval.hpp:12,
                 from main.cpp:1:
/usr/include/boost/icl/type_traits/rep_type_of.hpp:36:9: error: ‘is_same’ was not declared in this scope
         BOOST_STATIC_CONSTANT(bool,

in reply to:  1 comment:2 by Vincenzo Giovanni Comito <clynamen@…>, 6 years ago

My compilers versions

gcc (GCC) 6.2.1 20160830 Copyright (C) 2016 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

clang version 3.9.0 (tags/RELEASE_390/final) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /usr/bin

both fail with boost 1.62

Replying to Vincenzo Giovanni Comito <clynamen@…>:

Adding

#include <boost/icl/interval.hpp>

make it work, but it should not be needed.

Replying to Vincenzo Giovanni Comito <clynamen@…>:

This example does not compile

#include <boost/icl/left_open_interval.hpp>

int main(int argc, char** argv) {
  return 0;
}

compilation result:

In file included from /usr/include/boost/config.hpp:61:0,
                 from /usr/include/boost/concept/assert.hpp:7,
                 from /usr/include/boost/icl/left_open_interval.hpp:12,
                 from main.cpp:1:
/usr/include/boost/icl/type_traits/rep_type_of.hpp:36:9: error: ‘is_same’ was not declared in this scope
         BOOST_STATIC_CONSTANT(bool,

Note: See TracTickets for help on using tickets.