Boost logo

Boost-MPI :

Subject: Re: [Boost-mpi] _SCL_SECURE_NO_WARNINGS
From: Thomas Trummer (th.trummer_at_[hidden])
Date: 2015-05-25 14:16:04


> On 25.05.2015, at 19:55, Alain Miniussi <alain.miniussi_at_oca.eu> wrote:
>
> Wouln't it be possible to only add the magic in boost/mpi/config.hpp ? (which is supposed to be included everywhere in boost MPI)

That would be the easiest solution. However, you still would need a corresponding #pragma warning(pop) to not leak it into user code (code that includes 'boost/mpi.hpp’). Also, it has to be defined before including standard library headers like ‘vector'. So files like this <https://github.com/boostorg/mpi/blob/master/include/boost/mpi/collectives/all_reduce.hpp> would need to include ‘boost/mpi/config.hpp’ before 'vector'.

Thomas


Boost-Commit list run by troyer at boostpro.com