Add link to Visual Studio bug report

This commit is contained in:
Braden Ganetsky 2024-06-27 12:43:01 -05:00
parent d01b4e94cc
commit acbeaae181
2 changed files with 5 additions and 0 deletions

View File

@ -96,6 +96,8 @@ private:
#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
#if defined(BOOST_MSVC)
// This is a workaround to an MSVC bug when T is a nested class.
// See https://developercommunity.visualstudio.com/t/Compiler-bug:-Incorrect-C2247-and-C2248/10690025
namespace detail {
template<class T>

View File

@ -79,6 +79,9 @@ struct outer {
void test_derived_compile()
{
// This is testing the workaround to an MSVC bug when T is a nested class.
// See https://developercommunity.visualstudio.com/t/Compiler-bug:-Incorrect-C2247-and-C2248/10690025
const boost::empty_value<outer> x1(boost::empty_init);
const boost::empty_value<outer::inner_empty> x2(boost::empty_init);
const boost::empty_value<outer::inner_non_empty> x3(boost::empty_init);