VirtualBox

Changeset 83790 in vbox


Ignore:
Timestamp:
Apr 18, 2020 12:37:12 AM (5 years ago)
Author:
vboxsync
Message:

Main: VC++ 14.1 adjustments. bugref:8489

Location:
trunk/include/iprt/sanitized
Files:
2 copied

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/sanitized/iterator

    r83781 r83790  
    11/** @file
    2  * Safe way to include the 'string' header from the C++ library.
     2 * Safe way to include the 'iterator' header from the C++ library.
    33 */
    44
     
    2424 */
    2525
    26 #ifndef IPRT_INCLUDED_sanitized_string_h
    27 #define IPRT_INCLUDED_sanitized_string_h
     26#ifndef IPRT_INCLUDED_sanitized_iterator_h
     27#define IPRT_INCLUDED_sanitized_iterator_h
    2828#ifndef RT_WITHOUT_PRAGMA_ONCE
    2929# pragma once
     
    3232#ifdef _MSC_VER
    3333/*
    34  * Unfortunately, the 'string' file of VCC141 has trouble with C4091 in -Wall mode:
    35  *      string(530): warning C4774: '_scprintf' : format string expected in argument 1 is not a string literal
     34 * Unfortunately, the 'iterator' file of VCC141 has trouble with C4091 in -Wall mode (via ios):
    3635 *      xlocnum(1616): warning C4774: 'sprintf_s' : format string expected in argument 3 is not a string literal
    3736 */
     
    4241#endif
    4342
    44 #include <string>
     43#include <iterator>
    4544
    4645#ifdef _MSC_VER
     
    4847#endif
    4948
    50 #endif /* !IPRT_INCLUDED_sanitized_string_h */
     49#endif /* !IPRT_INCLUDED_sanitized_iterator_h */
    5150
  • trunk/include/iprt/sanitized/sstream

    r83781 r83790  
    11/** @file
    2  * Safe way to include the 'string' header from the C++ library.
     2 * Safe way to include the 'sstream' header from the C++ library.
    33 */
    44
     
    2424 */
    2525
    26 #ifndef IPRT_INCLUDED_sanitized_string_h
    27 #define IPRT_INCLUDED_sanitized_string_h
     26#ifndef IPRT_INCLUDED_sanitized_sstream_h
     27#define IPRT_INCLUDED_sanitized_sstream_h
    2828#ifndef RT_WITHOUT_PRAGMA_ONCE
    2929# pragma once
     
    3232#ifdef _MSC_VER
    3333/*
    34  * Unfortunately, the 'string' file of VCC141 has trouble with C4091 in -Wall mode:
    35  *      string(530): warning C4774: '_scprintf' : format string expected in argument 1 is not a string literal
    36  *      xlocnum(1616): warning C4774: 'sprintf_s' : format string expected in argument 3 is not a string literal
     34 * Unfortunately, the 'sstream' file of VCC141 has trouble with C4091 in -Wall mode
     35 * because it drags in string.h which causes stuff like:
     36 *      xlocnum(1616): warning C4774: 'sprintf_s' : format sstream expected in argument 3 is not a sstream literal
     37 *      sstream(530): warning C4774: '_scprintf' : format sstream expected in argument 1 is not a sstream literal
    3738 */
    3839# pragma warning(push)
     
    4243#endif
    4344
    44 #include <string>
     45#include <sstream>
    4546
    4647#ifdef _MSC_VER
     
    4849#endif
    4950
    50 #endif /* !IPRT_INCLUDED_sanitized_string_h */
     51#endif /* !IPRT_INCLUDED_sanitized_sstream_h */
    5152
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