Boost logo

Boost :

Subject: Re: [boost] boost lib must provide C interface?!
From: John Maddock (boost.regex_at_[hidden])
Date: 2011-05-13 03:38:38


> can a boost C++ library be required/forced to provide a C API?

No, this is a C++ library after all.

> Even if the library author doesn't like this idea - because he would be
> responsible for C stuff.
>
> <boost/config.hpp> include <cstddef> which will not be available for a C
> compiler - maybe this is an indication that boost libs are not required to
> implement a C-API.

Actually Boost.Config has recently be changed to support compilation in C
mode, but this is very much the exception not the rule.

John.


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