1

warning: deprecated conversion from string constant to ‘ACE_TCHAR*’

view story
linux-howto

http://stackoverflow.com – Good morning! I'm still learning C++ so this question may be trivial to more advanced programmers. I'm attempting to write unit tests in which we call the constructor to a generic class in the form: void testConstructor() { int argc = 2; ACE_TCHAR* argv[] = {"Input1", "Input2"}; MyClass *myClass = new MyClass(argc, argv); /**processing**/ } Think of ACE_TCHAR* the same as char*. The code above results in warning: deprecated conversion from string constant to ‘ACE_TCHAR*’ I have also tried: void testConstructor() { int argc = 2; ACE_TCHAR* argv[2]; argv[0 (HowTos)