aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2023-09-15 18:35:41 +0200
committerToni Uhlig <matzeton@googlemail.com>2023-09-15 18:35:41 +0200
commitf8948b833688f3622b0c0d2e2fba03f5db6ee7a5 (patch)
tree24087e044aded441ded30aad3d28fba83478d5c6 /examples
parentcfa8f1f3c8bec523c636746848be55f4bf28ace6 (diff)
Vsnprintf's a warning into the buffer if eastl::to_string is used.
* unfortunately, a compile time warning is not feasable w/o modifying EASTL sources Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/dpp-example-cplusplus.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/dpp-example-cplusplus.cpp b/examples/dpp-example-cplusplus.cpp
index 736fb32..50ff6b0 100644
--- a/examples/dpp-example-cplusplus.cpp
+++ b/examples/dpp-example-cplusplus.cpp
@@ -19,6 +19,9 @@ public:
{
DbgPrint("%s\n", "Hello Class!");
+ const auto & eastl_to_string = eastl::to_string(0xDEADC0DE);
+ DbgPrint("Using eastl::to_string should return a warning: %s\n", eastl_to_string.c_str());
+
const auto & number_ud = ::to_string(1337u);
DbgPrint("Value 1337u to String: %s\n", number_ud.c_str());
const auto & number_d = ::to_string(1337);