Skip to content

Commit

Permalink
Merge pull request #1761 from alicevision/dev/qt6-compatibility
Browse files Browse the repository at this point in the history
[build] Fix some C++17 incompabilities
  • Loading branch information
servantftechnicolor authored Oct 17, 2024
2 parents f784cd3 + 84c2944 commit 27f250b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aliceVision/prettyprint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ struct has_begin_end : private sfinae_base
// typename
template<typename C, typename LEFT = C::const_iterator (C::*)() const>
static yes& f(typename std::enable_if<
std::is_same<decltype(static_cast<typename LEFT>(&C::begin)), typename C::const_iterator (C::*)() const>::value>::type*);
std::is_same<decltype(static_cast<LEFT>(&C::begin)), typename C::const_iterator (C::*)() const>::value>::type*);
#else // _MSCV_VER
template<typename C>
static yes& f(typename std::enable_if<std::is_same<decltype(static_cast<typename C::const_iterator (C::*)() const>(&C::begin)),
Expand All @@ -68,7 +68,7 @@ struct has_begin_end : private sfinae_base
#ifdef _MSC_VER
template<typename C, typename LEFT = C::const_iterator (C::*)() const>
static yes& g(
typename std::enable_if<std::is_same<decltype(static_cast<typename LEFT>(&C::end)), typename C::const_iterator (C::*)() const>::value,
typename std::enable_if<std::is_same<decltype(static_cast<LEFT>(&C::end)), typename C::const_iterator (C::*)() const>::value,
void>::type*);
#else // _MSCV_VER
template<typename C>
Expand Down

0 comments on commit 27f250b

Please sign in to comment.