From 22baf1dd09153e07589e0cb3015724f4e355b27e Mon Sep 17 00:00:00 2001 From: Andrzej Krzemienski Date: Sat, 24 May 2014 13:44:07 +0200 Subject: [PATCH] Fixed bug in test on compiler with no rvalue refs --- test/optional_test_value_access.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/optional_test_value_access.cpp b/test/optional_test_value_access.cpp index 73dc3fd..bd3ea9e 100644 --- a/test/optional_test_value_access.cpp +++ b/test/optional_test_value_access.cpp @@ -108,7 +108,7 @@ struct FatToIntConverter static int conversions; int _val; FatToIntConverter(int val) : _val(val) {} - operator int() { conversions += 1; return _val; } + operator int() const { conversions += 1; return _val; } }; int FatToIntConverter::conversions = 0;