Skip to content

Commit d700034

Browse files
committed
Fix cxx20 build issue on Linux.
Apparently the compiler on macOS is less strict about this change?
1 parent 5c52007 commit d700034

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

view/sharedcache/core/refcountobject.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ namespace BinaryNinja::DSC {
5858
#endif
5959

6060
public:
61-
DSCRef<T>() : m_obj(NULL) {}
61+
DSCRef() : m_obj(NULL) {}
6262

63-
DSCRef<T>(T* obj) : m_obj(obj)
63+
DSCRef(T* obj) : m_obj(obj)
6464
{
6565
if (m_obj)
6666
{
@@ -71,7 +71,7 @@ namespace BinaryNinja::DSC {
7171
}
7272
}
7373

74-
DSCRef<T>(const DSCRef<T>& obj) : m_obj(obj.m_obj)
74+
DSCRef(const DSCRef& obj) : m_obj(obj.m_obj)
7575
{
7676
if (m_obj)
7777
{
@@ -82,7 +82,7 @@ namespace BinaryNinja::DSC {
8282
}
8383
}
8484

85-
~DSCRef<T>()
85+
~DSCRef()
8686
{
8787
if (m_obj)
8888
{
@@ -94,7 +94,7 @@ namespace BinaryNinja::DSC {
9494
}
9595

9696
// move constructor
97-
DSCRef<T>(DSCRef<T>&& other) : m_obj(other.m_obj)
97+
DSCRef(DSCRef&& other) : m_obj(other.m_obj)
9898
{
9999
other.m_obj = 0;
100100
#ifdef BN_REF_COUNT_DEBUG

0 commit comments

Comments
 (0)