(compiler)
Return the -std=c++[11/14] compiler flag.

    The c++14 is preferred over c++11 (when it is available).
Return the -std=c++[11/14] compiler flag.
Return the - std = c ++ [ 11 / 14 ] compiler flag .
def cpp_flag(compiler):
    """Return the -std=c++[11/14] compiler flag.

    The c++14 is preferred over c++11 (when it is available).
    """
    if has_flag(compiler, '-std=gnu++14'):
        return '-std=gnu++14'
    elif has_flag(compiler, '-std=c++14'):
        return '-std=c++14'
    elif has_flag(compiler, '-std=c++11'):
        return '-std=c++11'
    else:
        raise RuntimeError('Unsupported compiler -- at least C++11 support '
                           'is needed!')
def cpp_flag ( compiler ) : if has_flag ( compiler , '-std=gnu++14' ) : return '-std=gnu++14' elif has_flag ( compiler , '-std=c++14' ) : return '-std=c++14' elif has_flag ( compiler , '-std=c++11' ) : return '-std=c++11' else : raise RuntimeError ( 'Unsupported compiler -- at least C++11 support ' 'is needed!' )