parameters: (compiler)
docstring: Check and return the -std=c++11 compiler flag.
docstring_summary: Check and return the -std=c++11 compiler flag.
docstring_tokens: Check and return the - std = c ++ 11 compiler flag .
function: def cpp_flag(compiler):
      """Check and return the -std=c++11 compiler flag."""
      if sys.platform == "win32":
          return ""  # C++11 is on by default in MSVC
      elif has_flag(compiler, "-std=c++11"):
          return "-std=c++11"
      else:
          raise RuntimeError("Unsupported compiler -- C++11 support is needed!")
function_tokens: def cpp_flag ( compiler ) : if sys . platform == "win32" : return "" # C++11 is on by default in MSVC elif has_flag ( compiler , "-std=c++11" ) : return "-std=c++11" else : raise RuntimeError ( "Unsupported compiler -- C++11 support is needed!" )