boostorg / boostorg/program_options
program_options.hpp fails when imported as a header unit (MSVC 2022).
- Dominant language
- C++
- Stars
- 136
- Forks
- 117
- PR merge metrics
- No merged PRs in 30d
Description
The program fails to compile when trying to import `program_options.hpp` as a header unit in Visual Studio 2022 (C++20).
main.cpp
```
import ;
int main(int argc, char** argv)
{
namespace po = boost::program_options;
po::options_description desc;
desc.add_options()
("stringtest", po::value()->implicit_value("test"), "string test")
;
return 0;
}
```
You'll get the following error:
`Error - C3084 - 'boost::exception::~exception': a destructor cannot be 'abstract' - solution - E:\Projects\CPP\boost\boost\exception\exception.hpp - 297`
I haven't had any troubles with any other boost headers. This is the only one I've run into with this issue. This was tested with the latest master branch.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.