- 
    
Bug
 - 
    Resolution: Fixed
 - 
    
P2: Important
 - 
    6.5.0 RC
 - 
    None
 - 
    Visual studio 2019
Enable QT_NAMESPACE 
Following build issue during the build with visual studio:
qvariant.h(54): error C2888: 'const bool qIsRelocatable<QT_AME_NAMESPACE::QVariant>': symbol cannot be defined within namespace 'QT_AME_NAMESPACE'
The problem isn't the code of qvariant.h, it's visual studio compiler issue as explain here.
The workaround is to change:
template<> constexpr inline bool QtPrivate::qIsRelocatable<QVariant> = true;
by:
namespace QtPrivate 
{
    template<> constexpr inline bool qIsRelocatable<QVariant> = true;
} 
Patch attached.
- duplicates
 - 
                    
QTBUG-112016 [REG 6.5.0beta3 -> RC] namespace build fails on MSVC2019
-         
 - Closed
 
 -