| 151 | } |
| 152 | |
| 153 | bool compare(const std::unique_ptr<Placeholder>& other) const override |
| 154 | { |
| 155 | if constexpr (HasOperatorEqual<ValueType>::value) |
| 156 | return getType() == other->getType() && held == static_cast<Holder*>(other.get())->held; |
| 157 | else |
| 158 | MYGUI_EXCEPT("Type '" << getType().name() << "' is not comparable"); |
| 159 | } |
| 160 | |
| 161 | private: |
| 162 | ValueType held; |