From da9903fe57ed50456c0e292b28209c9f01c6472a Mon Sep 17 00:00:00 2001 From: Abhishek Akkabathula Date: Tue, 13 Feb 2024 17:36:21 +0530 Subject: [PATCH] elf/tests/helloxx: fix build break with elf cpp exceptions example fix the below build error by correcting the typo (tring -> string) hello++5.cxx: In member function 'virtual void CThingSayer::ThrowMyThing(const char*)': hello++5.cxx:157:21: error: 'tring' was not declared in this scope 157 | throw MyException(tring(czSayThis)); | ^~~~~ Signed-off-by: Abhishek Akkabathula --- examples/elf/tests/helloxx/hello++5.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/elf/tests/helloxx/hello++5.cxx b/examples/elf/tests/helloxx/hello++5.cxx index b087fdb00..bda7aaf9e 100644 --- a/examples/elf/tests/helloxx/hello++5.cxx +++ b/examples/elf/tests/helloxx/hello++5.cxx @@ -154,7 +154,7 @@ void CThingSayer::ThrowThing(void) void CThingSayer::ThrowMyThing(const char *czSayThis = NULL) { cout << "CThingSayer::ThrowMyThing: I am now throwing an MyException (with reason)." << endl; - throw MyException(tring(czSayThis)); + throw MyException(string(czSayThis)); } /////////////////////////////////////////////////////////////////////////////