Skip to content

Commit 44e6a85

Browse files
committed
Work-around for Visual Studio
1 parent 4829be8 commit 44e6a85

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/tao/json/value.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,13 +1589,13 @@ namespace tao
15891589
// LCOV_EXCL_STOP
15901590
}
15911591

1592-
template< template< typename... > class Traits >
1592+
template< template< typename... > class Traits, int = 1 > // work-around for Visual C++
15931593
bool operator==( const basic_value< Traits >& lhs, tao::internal::identity< basic_value< Traits > > rhs ) noexcept
15941594
{
15951595
return lhs == rhs;
15961596
}
15971597

1598-
template< template< typename... > class Traits >
1598+
template< template< typename... > class Traits, int = 2 > // work-around for Visual C++
15991599
bool operator==( tao::internal::identity< basic_value< Traits > > lhs, const basic_value< Traits >& rhs ) noexcept
16001600
{
16011601
return lhs == rhs;
@@ -1782,13 +1782,13 @@ namespace tao
17821782
// LCOV_EXCL_STOP
17831783
}
17841784

1785-
template< template< typename... > class Traits >
1785+
template< template< typename... > class Traits, int = 1 > // work-around for Visual C++
17861786
bool operator<( const basic_value< Traits >& lhs, tao::internal::identity< basic_value< Traits > > rhs ) noexcept
17871787
{
17881788
return lhs < rhs;
17891789
}
17901790

1791-
template< template< typename... > class Traits >
1791+
template< template< typename... > class Traits, int = 2 > // work-around for Visual C++
17921792
bool operator<( const tao::internal::identity< basic_value< Traits > > lhs, const basic_value< Traits >& rhs ) noexcept
17931793
{
17941794
return lhs < rhs;

0 commit comments

Comments
 (0)