lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] Replacing boost with C++ standard library [Was: Replacing boos


From: Greg Chicares
Subject: Re: [lmi] Replacing boost with C++ standard library [Was: Replacing boost with std C++11]
Date: Sun, 25 Feb 2018 22:31:48 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2

On 2018-02-24 22:32, Greg Chicares wrote:
[...]
> Ignoring 'filesystem' (in namespace 'fs'), and filtering out comments,
> the unit tests (category IV), and 'test_coding_rules':
> 
> $grep 'boost::' *.?pp |sed -e'/^[^:]*: *\/\//d' -e'/^[^:]*_test.cpp:/d' 
> -e'/^test_coding/d'
> calendar_date.hpp:    :boost::additive<calendar_date,int>
> calendar_date.hpp:    ,boost::totally_ordered<calendar_date>
> calendar_date.hpp:    ,boost::unit_steppable<calendar_date>
> config.hpp:namespace fs = boost::filesystem;
> mc_enum.hpp:    ,private boost::equality_comparable<mc_enum<T>,mc_enum<T>>
> mc_enum.hpp:    ,private boost::equality_comparable<mc_enum<T>,T>
> mc_enum.hpp:    ,private boost::equality_comparable<mc_enum<T>,std::string>
> tn_range.hpp:    ,private boost::totally_ordered    <tn_range<Number,Trammel>>
> tn_range.hpp:    ,private 
> boost::equality_comparable<tn_range<Number,Trammel>,Number>
> tn_range.hpp:    ,private 
> boost::equality_comparable<tn_range<Number,Trammel>,std::string>

Today, only a namespace alias remains:

$grep 'boost::' *.?pp |sed -e'/^[^:]*: *\/\//d' -e'/^[^:]*_test.cpp:/d' 
-e'/^test_coding/d'
config.hpp:namespace fs = boost::filesystem;

>> Anyway, if we upgrade the C++ dialect and write comparison operators 
>> ourselves,
>> we can remove boost utterly from lmi, with all the problems it brings...and
>> enable all the warnings it has forced us to turn off.
> 
> The only remaining obstacles are 'filesystem' and a few sets of operators.

Now the only remaining obstacle is 'filesystem'.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]