Changeset 83790 in vbox
- Timestamp:
- Apr 18, 2020 12:37:12 AM (5 years ago)
- Location:
- trunk/include/iprt/sanitized
- Files:
-
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/sanitized/iterator
r83781 r83790 1 1 /** @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. 3 3 */ 4 4 … … 24 24 */ 25 25 26 #ifndef IPRT_INCLUDED_sanitized_ string_h27 #define IPRT_INCLUDED_sanitized_ string_h26 #ifndef IPRT_INCLUDED_sanitized_iterator_h 27 #define IPRT_INCLUDED_sanitized_iterator_h 28 28 #ifndef RT_WITHOUT_PRAGMA_ONCE 29 29 # pragma once … … 32 32 #ifdef _MSC_VER 33 33 /* 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): 36 35 * xlocnum(1616): warning C4774: 'sprintf_s' : format string expected in argument 3 is not a string literal 37 36 */ … … 42 41 #endif 43 42 44 #include < string>43 #include <iterator> 45 44 46 45 #ifdef _MSC_VER … … 48 47 #endif 49 48 50 #endif /* !IPRT_INCLUDED_sanitized_ string_h */49 #endif /* !IPRT_INCLUDED_sanitized_iterator_h */ 51 50 -
trunk/include/iprt/sanitized/sstream
r83781 r83790 1 1 /** @file 2 * Safe way to include the 's tring' header from the C++ library.2 * Safe way to include the 'sstream' header from the C++ library. 3 3 */ 4 4 … … 24 24 */ 25 25 26 #ifndef IPRT_INCLUDED_sanitized_s tring_h27 #define IPRT_INCLUDED_sanitized_s tring_h26 #ifndef IPRT_INCLUDED_sanitized_sstream_h 27 #define IPRT_INCLUDED_sanitized_sstream_h 28 28 #ifndef RT_WITHOUT_PRAGMA_ONCE 29 29 # pragma once … … 32 32 #ifdef _MSC_VER 33 33 /* 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 37 38 */ 38 39 # pragma warning(push) … … 42 43 #endif 43 44 44 #include <s tring>45 #include <sstream> 45 46 46 47 #ifdef _MSC_VER … … 48 49 #endif 49 50 50 #endif /* !IPRT_INCLUDED_sanitized_s tring_h */51 #endif /* !IPRT_INCLUDED_sanitized_sstream_h */ 51 52
Note:
See TracChangeset
for help on using the changeset viewer.