cpp-semver icon indicating copy to clipboard operation
cpp-semver copied to clipboard

[proposed enhancement] Add optional C++20 module support

Open Theramar opened this issue 1 year ago • 1 comments

Instead of downloading semver.hpp users could install an optional semver.cppm

simple solution:


//semver.cppm. This is an automatically generated file
#define SEMVER_MODULE
//copy "semver.hpp" content here


//semver.hpp
#ifdef SEMVER_MODULE
#define SEMVER_EXPORT export
#else
#define SEMVER_EXPORT
#endif

SEMVER_EXPORT namespace semver { 
//...
}

Theramar avatar Aug 10 '23 12:08 Theramar

We now track cpp-semver modules support progress at https://arewemodulesyet.org/ . Feel free to create a PR if the status changes at https://github.com/kelteseth/arewemodulesyet/ 😊

kelteseth avatar May 03 '24 11:05 kelteseth

Hi @Theramar, I've released v0.4.0, which includes the support for C++ 20 modules. Could you please check that it's working as you expected? Thanks!

@kelteseth, thank you for letting me know! I'll create a PR to report the lib's current status.

z4kn4fein avatar Aug 21 '24 16:08 z4kn4fein

It works! Thank you

Theramar avatar Aug 29 '24 16:08 Theramar