boost::pfr::get_name fails if a structurehas a member with a void pointer type
Open
- Dominant language
- C++
- Stars
- 1.5k
- Forks
- 176
- Avg merge
- 5d 21h
- Merged PRs (30d)
- 1
Description
VS2022 does not compile the following code snippet , if any member is a void pointer. Are there any workaround?. I did not check, this behavior with clang or gcc.
BOOST 1.84
VS 17.10.3
Example:
#include "stdafx.h"
#include
#include
#include
struct LongPointerTest {
long* OwningThread;
};
struct VoidPointerTestFailsToCompile {
void* OwningThread;
};
int main()
{
static_assert(boost::pfr::get_name<0, LongPointerTest>() == "OwningThread");
auto name = boost::pfr::get_name<0, VoidPointerTestFailsToCompile>();
}
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.