Ticket Hash: 5a9e81910ede7e3e1f774bb0fe1ac9fb185c3674
Title: cxxomfort should include a TR1 forwarder
Status: Closed Type: Code_Defect
Severity: Severe Priority: High
Subsystem: Resolution: Open
Last Modified: 2020-09-21 11:58:48
Version Found In: all
User Comments:
anonymous added on 2019-02-03 13:54:10:

Cxxomfort says it recommends a TR1 forwarder for GCC but it is a hard prereq instead; hard compilation errors due to #include result without it where it either doesn't find the header, or clashes with a C++11 header.

Since Tr1 is a finished implementation, cxxomfort should include its own set of TR1 forwarder libraries.

This is also related to [8ee003badda1c6033919702ac729de7c00ceb6b1].

Example of error output:

In file included from /usr/include/c++/4.6/type_traits:35:0,
                 from /usr/local/include/cxxomfort/cxxomfort/impl/14-algorithm-equal.hpp:8,
                 from /usr/local/include/cxxomfort/cxxomfort/algorithm.hpp:176,
                 from /usr/local/include/cxxomfort/cxxomfort/backports.hpp:20,
                 from /usr/local/include/cxxomfort/cxxomfort/cxxomfort.hpp:86,
                 from binders.cpp:10:
/usr/include/c++/4.6/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the upcoming ISO C++ standard, C++0x. This support is currently experimental, and must be enabled with the -std=c++0x or -std=gnu++0x compiler options.


luismachuca added on 2020-09-21 11:58:48:

Starting 20200101, cxxomfort now includes an automatic TR1 forwarding for compilers in "TR1" mode like GCC 4.x.