Skip to content

Commit f11a95e

Browse files
committed
Fix compilation error due to template id in constructor
1 parent 704337b commit f11a95e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

include/ola/thread/FuturePrivate.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ class FutureImpl {
8989
bool m_is_set;
9090
T m_value;
9191

92-
DISALLOW_COPY_AND_ASSIGN(FutureImpl);
92+
FutureImpl(const FutureImpl<T>&) = delete;
93+
FutureImpl<T> operator=(const FutureImpl<T>&) = delete;
9394
};
9495

9596
/**
@@ -152,7 +153,8 @@ class FutureImpl<void> {
152153
unsigned int m_ref_count;
153154
bool m_is_set;
154155

155-
DISALLOW_COPY_AND_ASSIGN(FutureImpl);
156+
FutureImpl(const FutureImpl<void>&) = delete;
157+
FutureImpl<void> operator=(const FutureImpl<void>&) = delete;
156158
};
157159

158160
} // namespace thread

0 commit comments

Comments
 (0)