Ticket #8759: map_convert.patch
File map_convert.patch, 979 bytes (added by , 9 years ago) |
---|
-
container/map/convert.hpp
80 80 typedef result_of::as_map<Sequence const> gen; 81 81 return gen::call(fusion::begin(seq), fusion::end(seq)); 82 82 } 83 84 namespace extension 85 { 86 template <typename T> 87 struct convert_impl; 88 89 template <> 90 struct convert_impl<map_tag> 91 { 92 template <typename Sequence> 93 struct apply 94 { 95 typedef typename 96 result_of::as_map<Sequence>::type 97 type; 98 99 static type call(Sequence& seq) 100 { 101 typedef result_of::as_map<Sequence> gen; 102 return gen::call(fusion::begin(seq), fusion::end(seq)); 103 } 104 }; 105 }; 106 } 83 107 }} 84 108 85 109 #endif