diff --git a/thefuck/rules/c++11.py b/thefuck/rules/c++11.py new file mode 100644 index 0000000..f4d8ab5 --- /dev/null +++ b/thefuck/rules/c++11.py @@ -0,0 +1,11 @@ +def match(command, settings): + return (('g++' in command.script or 'clang++' in command.script) and + ('This file requires compiler and library support for the ' + 'ISO C++ 2011 standard.' in command.stderr or + '-Wc++11-extensions' in command.stderr + ) + ) + + +def get_new_command(command, settings): + return command.script + ' -std=c++11'