Boost logo

Boost :

Subject: Re: [boost] [config] Does it work with compilers in C mode ?
From: Edward Diener (eldiener_at_[hidden])
Date: 2011-03-24 16:03:01


On 3/24/2011 12:28 PM, John Maddock wrote:
>> Is there any guarantee that the configuration files will work with a C
>> compiler or a C++ compiler in C mode ? Is there anything in the
>> configuration files which is C++ specific ?
>
> Almost certainly :-(

What in config is C++ specific as opposed to C as far as the actual
header file code ?

>
>> I am working on bringing my variadic macro data library into Boost PP,
>> and I wanted to use the BOOST_NO_VARIADIC_MACROS in config, but Paul
>> Mensonides was concerned that Boost PP should work with a C compiler
>> and that config could have something that is C++ specific, and
>> therefore be unusable for Boost PP. I would rather not reduplicate the
>> logic of BOOST_NO_VARIADIC_MACROS in Boost PP, even though I was the
>> one to add it to config, because it puts the same code in two
>> different places.
>
> We could try and patch Boost.Config to make it C compatible I guess...
> not sure how much work it would be though?

I am not concerned about the tests themselves, but rather about the
header files. If there are C++ specific things in the header files which
could just as easily work with C, I would like to take a look at what
they are. if it was reasonable work, I could try to convert it as long
as it does not affect anything in C++ negatively and was not essentially
a "hack" to fit C++ into C.


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