1 2 3 4 5 6 7 8 9 10 11
#include <cstdio> void example(char * str) { std::puts(str); } int main() { example("Hello World!"); }
1 2 3
cc1plus: warnings being treated as errors In function 'int main()': Line 10: warning: deprecated conversion from string constant to 'char*''