|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2025-01-13 19:37:50
Ruben Perez wrote:
> I think this applies for non module units, too. I've just tested that,
> under MSVC, the following errors:
>
> // File: main.cpp
> import std;
> #include <cstddef>
> int main() {}
>
> This does not seem to happen with all the headers, though.
> * version, cstdint, climits, cassert, cfloat, cstdio, cstdlib, cerrno
> seem to work fine
> * cmath and cstddef seem to error.
>
> So if we have in a program:
>
> // File: main.cpp
> #include <boost/mp11.hpp>
> #include <boost/charconv.hpp>
> int main() {}
Yeah, that's going to be a problem.
Interestingly, though,
import std;
#include <math.h>
#include <stddef.h>
int main() {}
works fine.
If we only need these for the macros, this might well work.
(It's probably std::byte from cstddef that breaks things.)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk