class ambiguous_option

Declaration

class ambiguous_option : public error_with_no_option_name { /* full declaration omitted */ };

Description

Class thrown when there's ambiguity among several possible options.

Declared at: libs/pika/program_options/include/pika/program_options/errors.hpp:291

Inherits from: error_with_no_option_name

Member Variables

Inherited from error_with_option_name:

protected m_option_style
protected m_substitutions
protected m_substitution_defaults
public m_error_template
protected m_message

Method Overview

Inherited from error_with_no_option_name:

Inherited from error_with_option_name:

Inherited from error:

    Methods

    const std::vector<std::string>& alternatives()
        const noexcept

    Declared at: libs/pika/program_options/include/pika/program_options/errors.hpp:303

    ambiguous_option(
        const std::vector<std::string>& xalternatives)

    Declared at: libs/pika/program_options/include/pika/program_options/errors.hpp:294

    Parameters

    const std::vector<std::string>& xalternatives

    void substitute_placeholders(
        const std::string& error_template) const

    Description

    Makes all substitutions using the template

    Declared at: libs/pika/program_options/include/pika/program_options/errors.hpp:310

    Parameters

    const std::string& error_template

    ~ambiguous_option() noexcept

    Description

    gcc says that throw specification on dtor is loosened without this line

    Declared at: libs/pika/program_options/include/pika/program_options/errors.hpp:301