#include #include using namespace std; using namespace crepe; using namespace testing; TEST(OptionalRefTest, Explicit) { string value = "foo"; OptionalRef ref; EXPECT_FALSE(bool(ref)); ASSERT_THROW(ref.get(), runtime_error); }