mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-07-30 20:57:21 +02:00
Manually convince clang-cl to fail shared_from_fail and weak_from_fail
This commit is contained in:
@ -9,6 +9,12 @@ struct X: public boost::enable_shared_from
|
||||
{
|
||||
};
|
||||
|
||||
#if defined(__clang__) && defined(_MSC_VER)
|
||||
// clang-cl claims that it accepts this code for compatibility
|
||||
// with msvc, but no version of msvc accepts it
|
||||
# pragma clang diagnostic error "-Wmicrosoft-using-decl"
|
||||
#endif
|
||||
|
||||
int main()
|
||||
{
|
||||
boost::shared_ptr<X> px( new X );
|
||||
|
@ -9,6 +9,12 @@ struct X: public boost::enable_shared_from
|
||||
{
|
||||
};
|
||||
|
||||
#if defined(__clang__) && defined(_MSC_VER)
|
||||
// clang-cl claims that it accepts this code for compatibility
|
||||
// with msvc, but no version of msvc accepts it
|
||||
# pragma clang diagnostic error "-Wmicrosoft-using-decl"
|
||||
#endif
|
||||
|
||||
int main()
|
||||
{
|
||||
boost::shared_ptr<X> px( new X );
|
||||
|
Reference in New Issue
Block a user