Wildmeshing Toolkit
attribute_ambiguous_error.hpp
Go to the documentation of this file.
1 #pragma once
2 #include "attribute_error.hpp"
4 struct AttributeDescription;
5 }
6 
8 
10 {
11 public:
12  static std::string make_message(
14  const std::vector<AttributeDescription>& possibilities);
16  const AttributeDescription& d,
17  const std::vector<AttributeDescription>& possibilities)
18  : attribute_error(make_message(d, possibilities), d)
19  {}
20  template <typename... Args>
22  const std::vector<AttributeDescription>& possiblities,
23  Args&&... args)
24  {
26  AttributeDescription{std::forward<Args>(args)...},
27  possiblities);
28  }
29 };
30 
31 
32 } // namespace wmtk::components::multimesh::utils::detail
attribute_ambiguous_error(const AttributeDescription &d, const std::vector< AttributeDescription > &possibilities)
static std::string make_message(const AttributeDescription &description, const std::vector< AttributeDescription > &possibilities)
static attribute_ambiguous_error make(const std::vector< AttributeDescription > &possiblities, Args &&... args)