Boost logo

Boost :

Subject: Re: [boost] BOOST_HAS_PRAGMA_ONCE
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2015-02-05 02:19:54


El 04/02/2015 a las 20:28, Stephen Kelly escribió:
> Ion Gaztañaga wrote:
>
>> Yes, it should be a very tiny help.. except if config.hpp also uses
>> pragma once ;-)
>>
>
> You don't think it's, maybe, relying on implementation details of config,
> and, maybe, that's not a good thing?

Maybe ;-) It's not something new in boost:

http://www.boost.org/doc/libs/1_57_0/boost/type_traits/config.hpp

#ifndef BOOST_CONFIG_HPP
#include <boost/config.hpp>
#endif

Nothing will break if boost/config.hpp does not define BOOST_CONFIG_HPP,
we'll just loose the tiny help. It's ugly, I agree, but I don't think
this is a problem for anyone.

Ion


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk