Poac package build C++ standard #647
-
Does poac build packages against the standard specified for the package which can be sperate for the project building them (similar to Cargo) or are they all built using the current projects specified standard? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This is also not implemented, but I plan to implement the following.
Case [package]
edition = ">=2011 and <2020" # This package uses `std::return_temporary_buffer` which was removed since C++20 |
Beta Was this translation helpful? Give feedback.
This is also not implemented, but I plan to implement the following.
Case
1
is similar to Cargo, but2
is not.If the current project's standard (the
edition
key) is older than the header-only dependencies' standards, then Poac will emit an error.However, since
edition
which is implicitly the minimum required version is confusing, it might be better to be able to specify a supported standard range like dependencies: