Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  08 Aug 2019, Konstantin Olchanski, Info, MIDAS will use C++11 
    Reply  16 Mar 2020, Konstantin Olchanski, Info, MIDAS will use C++11 
       Reply  16 Mar 2020, Pintaudi Giorgio, Info, MIDAS will use C++11 
Message ID: 1853     Entry time: 16 Mar 2020     In reply to: 1852
Author: Pintaudi Giorgio 
Topic: Info 
Subject: MIDAS will use C++11 
About the boost library, that is exactly 
what I did for a project of mine (the 
calibration software for the WAGASCI 
experiment). It turned out not so easy to 
mantain because different Linux distros 
package different versions of boost.

The reason I went down the "c++11 plus 
boost" road is that the official T2K OS 
is CentOS7 as well.

Looking back I think that using c++17 and 
requiring a more recent version of the 
compiler is much easier to maintain than 
the combo c++11 + boost. In CentOS is 
just a matter of installing a recent 
devtool package ...

Another solution might be too repackage 
boost into MIDAS so you have full control 
of the environment.

> > After much discussion, and following 
the MIDAS workshop at TRIUMF, we made the 
decision to use C++11 in MIDAS.
> > 
> > There are many benefits, and only one 
drawback - no c++11 compilers in the 
default OS install on older computers 
> > RHEL/SL/CentOS before el7). (the same 
applies to our use of cmake).
> >
> It turns out that support for the c++11 
"regex" feature is missing on el7 
(CentOS-7, our most common platform at 
> According to
> gcc 4.9.0 is the first one to implement 
c++11 regular expressions. el7 comes with 
gcc-4.8.5 and I confirm
> that examples of using 
std::regex_replace() do not compile. I 
was looking to use std::regex_replace to 
implement URL rewriting
> in the reverse proxy code in mhttpd.
> I do not need this feature immediately, 
but I am surprised that such a thing can 
happen, thought others should know.
> K.O.
ELOG V3.1.4-2e1708b5