From 42445e94aa8c9a68fce4af0d4980dc6cf8226e4a Mon Sep 17 00:00:00 2001 From: Andrzej Krzemienski Date: Sun, 24 Jun 2018 17:12:38 +0200 Subject: [PATCH] Fix for C++03 tests for .map() using result_of --- test/optional_test_map.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/optional_test_map.cpp b/test/optional_test_map.cpp index 42878da..f16c733 100644 --- a/test/optional_test_map.cpp +++ b/test/optional_test_map.cpp @@ -86,6 +86,7 @@ struct Int struct convert_t { + typedef Int result_type; Int operator()(int i) { return Int(i); } }; @@ -96,6 +97,7 @@ int& get_int_ref(Int& i) struct get_ref { + typedef int& result_type; int& operator()(int& i) { return i; } };