We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 130801c commit 7831b21Copy full SHA for 7831b21
include/plog/Record.h
@@ -97,7 +97,13 @@ namespace plog
97
98
// Print std containers
99
template<class Container>
100
- inline typename meta::enableIf<!!(sizeof(typename Container::const_iterator)), void>::type operator<<(util::nostringstream& stream, const Container& data)
+ inline typename meta::enableIf<!!(sizeof(
101
+#if defined(_MSC_VER) && _MSC_VER < 1700 // MSVC 2010 doesn't understand `typename Container::const_iterator`
102
+ meta::declval<Container>().begin()) + sizeof(meta::declval<Container>().end()
103
+#else
104
+ typename Container::const_iterator
105
+#endif
106
+ )), void>::type operator<<(util::nostringstream& stream, const Container& data)
107
{
108
stream << "[";
109
0 commit comments