def cpp_flag(compiler):
if   has_flag(compiler,'<STR_LIT>'): return '<STR_LIT>'<EOL>elif has_flag(compiler,'<STR_LIT>'): return '<STR_LIT>'<EOL>raise RuntimeError('<STR_LIT>')<EOL>
r'''
  Set the c++14 standard, or else the c++11 standard. In case neither can be set the function
  raises an error.

  (c) Sylvain Corlay, https://github.com/pybind/python_example