mirror of
https://github.com/boostorg/core.git
synced 2025-05-09 23:03:54 +00:00
Add link to Visual Studio bug report
This commit is contained in:
parent
d01b4e94cc
commit
acbeaae181
@ -96,6 +96,8 @@ private:
|
|||||||
|
|
||||||
#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
|
#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
|
||||||
#if defined(BOOST_MSVC)
|
#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 {
|
namespace detail {
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
|
@ -79,6 +79,9 @@ struct outer {
|
|||||||
|
|
||||||
void test_derived_compile()
|
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> x1(boost::empty_init);
|
||||||
const boost::empty_value<outer::inner_empty> x2(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);
|
const boost::empty_value<outer::inner_non_empty> x3(boost::empty_init);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user