VirtualBox

Changeset 106495 in vbox for trunk


Ignore:
Timestamp:
Oct 19, 2024 3:08:15 AM (4 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
165327
Message:

iprt/cpp/xml.h: Shut up the C5267 warning with VC 14.3. jiraref:VBP-1171

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cpp/xml.h

    r106061 r106495  
    5353#include <list>
    5454#include <memory>
     55
     56#if RT_MSC_PREREQ(RT_MSC_VER_VS2022)
     57# pragma warning(push)
     58# pragma warning(disable:5267) /* warning C5267: definition of implicit assignment operator for 'xml::Stream' is deprecated because it has a user-provided destructor */
     59#endif
    5560
    5661
     
    201206     * given stream.
    202207     */
    203     virtual void setPos (uint64_t aPos) = 0;
     208    virtual void setPos(uint64_t aPos) = 0;
    204209};
    205210
     
    12411246};
    12421247
    1243 #if defined(_MSC_VER)
    1244 #pragma warning (default:4251)
     1248/** @} */
     1249
     1250} /* end namespace xml */
     1251
     1252#if RT_MSC_PREREQ(RT_MSC_VER_VS2022)
     1253# pragma warning(pop)
    12451254#endif
    12461255
    1247 /** @} */
    1248 
    1249 } // end namespace xml
    1250 
    12511256#endif /* !IPRT_INCLUDED_cpp_xml_h */
    12521257
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette