You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
int main()
{
static_assert(boost::pfr::get_name<0, LongPointerTest>() == "OwningThread");
auto name = boost::pfr::get_name<0, VoidPointerTestFailsToCompile>();
}
The text was updated successfully, but these errors were encountered:
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 <boost/pfr/core.hpp>
#include <boost/pfr/core_name.hpp>
#include <boost/pfr/traits.hpp>
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>();
}
The text was updated successfully, but these errors were encountered: