Emacs: Upgrade main snippet to C++17.

This commit is contained in:
tastytea 2019-12-19 00:45:56 +01:00
parent 1c93874516
commit 1a6db383c6

View File

@ -2,15 +2,15 @@
# name: main # name: main
# key: main # key: main
# -- # --
#include <string> #include <string_view>
#include <vector> #include <vector>
using std::string; using std::string_view;
using std::vector; using std::vector;
int main(${1:int argc, char *argv[]}) int main(${1:int argc, char *argv[]})
{ {
${2:const vector<string> args(argv, argv + argc);} ${2:const vector<string_view> args(argv, argv + argc);}
$0 $0
return 0; return 0;