C++で下記の(例1)のようにprintln関数を作り、main内で実行したところ、 warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]という警告が出てしまいます。 文字列リテラルをchar * に変換するのは非推奨であるということだと思うのですがこの警告を回避するにはどうすればいいのでしょうか? (例1) #include <iostream> void println(char *s) { std::cout << s << "\n"; } int main() { println("Hello"); }

