| 5 | namespace test_exports = ::exports::test::variants::to_test; |
| 6 | |
| 7 | std::optional<uint8_t> test_exports::RoundtripOption(std::optional<float> a) { |
| 8 | if (a.has_value()) { |
| 9 | return std::optional<uint8_t>(a); |
| 10 | } else { |
| 11 | return std::optional<uint8_t>(); |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | std::expected<double, uint8_t> test_exports::RoundtripResult(std::expected<uint32_t, float> a) { |
| 16 | if (a.has_value()) { |