Commit 5ff72f52 by Piotr Nycz

Apply 80chars limit

Issue 2527
parent d0726821
...@@ -674,7 +674,8 @@ TEST(ReturnRefTest, DoesNotWorkForTemporary) { ...@@ -674,7 +674,8 @@ TEST(ReturnRefTest, DoesNotWorkForTemporary) {
auto nonScalarValue = []() -> std::string { return "ABC"; }; auto nonScalarValue = []() -> std::string { return "ABC"; };
EXPECT_FALSE(CanCallReturnRef(nonScalarValue())); EXPECT_FALSE(CanCallReturnRef(nonScalarValue()));
// cannot use here callable returning "const scalar type" because C++ ignores such const for scalar return type, so the static_cast // cannot use here callable returning "const scalar type",
// because such const for scalar return type is ignored
EXPECT_FALSE(CanCallReturnRef(static_cast<const int>(321))); EXPECT_FALSE(CanCallReturnRef(static_cast<const int>(321)));
auto constNonScalarValue = []() -> const std::string { return "CBA"; }; auto constNonScalarValue = []() -> const std::string { return "CBA"; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment