//          Copyright Carl Philipp Reh 2009 - 2021.
// Distributed under the Boost Software License, Version 1.0.
//    (See accompanying file LICENSE_1_0.txt or copy at
//          http://www.boost.org/LICENSE_1_0.txt)

#ifndef FCPPT_OPTIONS_MISSING_ERROR_SUM_HPP_INCLUDED
#define FCPPT_OPTIONS_MISSING_ERROR_SUM_HPP_INCLUDED

#include <fcppt/recursive_impl.hpp>
#include <fcppt/options/missing_error_sum_fwd.hpp>
#include <fcppt/options/missing_error_variant_fwd.hpp>
#include <fcppt/options/detail/symbol.hpp>

namespace fcppt::options
{
class missing_error_sum
{
public:
  FCPPT_OPTIONS_DETAIL_SYMBOL missing_error_sum(
      fcppt::options::missing_error_variant &&, fcppt::options::missing_error_variant &&);

  [[nodiscard]] FCPPT_OPTIONS_DETAIL_SYMBOL fcppt::options::missing_error_variant &left();

  [[nodiscard]] FCPPT_OPTIONS_DETAIL_SYMBOL fcppt::options::missing_error_variant const &
  left() const;

  [[nodiscard]] FCPPT_OPTIONS_DETAIL_SYMBOL fcppt::options::missing_error_variant &right();

  [[nodiscard]] FCPPT_OPTIONS_DETAIL_SYMBOL fcppt::options::missing_error_variant const &
  right() const;

  [[nodiscard]] FCPPT_OPTIONS_DETAIL_SYMBOL bool operator==(missing_error_sum const &) const;
private:
  using base = fcppt::recursive<fcppt::options::missing_error_variant>;

  base left_;

  base right_;
};

}

#endif
