This is an automated email from the ASF dual-hosted git repository. jerpelea pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push: new da9903fe5 elf/tests/helloxx: fix build break with elf cpp exceptions example da9903fe5 is described below commit da9903fe57ed50456c0e292b28209c9f01c6472a Author: Abhishek Akkabathula <a.akkabat...@samsung.com> AuthorDate: Tue Feb 13 17:36:21 2024 +0530 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 <a.akkabat...@samsung.com> --- 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)); } /////////////////////////////////////////////////////////////////////////////