Skip to content

Commit 27f250b

Browse files
Merge pull request #1761 from alicevision/dev/qt6-compatibility
[build] Fix some C++17 incompabilities
2 parents f784cd3 + 84c2944 commit 27f250b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aliceVision/prettyprint.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ struct has_begin_end : private sfinae_base
5555
// typename
5656
template<typename C, typename LEFT = C::const_iterator (C::*)() const>
5757
static yes& f(typename std::enable_if<
58-
std::is_same<decltype(static_cast<typename LEFT>(&C::begin)), typename C::const_iterator (C::*)() const>::value>::type*);
58+
std::is_same<decltype(static_cast<LEFT>(&C::begin)), typename C::const_iterator (C::*)() const>::value>::type*);
5959
#else // _MSCV_VER
6060
template<typename C>
6161
static yes& f(typename std::enable_if<std::is_same<decltype(static_cast<typename C::const_iterator (C::*)() const>(&C::begin)),
@@ -68,7 +68,7 @@ struct has_begin_end : private sfinae_base
6868
#ifdef _MSC_VER
6969
template<typename C, typename LEFT = C::const_iterator (C::*)() const>
7070
static yes& g(
71-
typename std::enable_if<std::is_same<decltype(static_cast<typename LEFT>(&C::end)), typename C::const_iterator (C::*)() const>::value,
71+
typename std::enable_if<std::is_same<decltype(static_cast<LEFT>(&C::end)), typename C::const_iterator (C::*)() const>::value,
7272
void>::type*);
7373
#else // _MSCV_VER
7474
template<typename C>

0 commit comments

Comments
 (0)