Skip to content

Commit 3d16f50

Browse files
committed
Fix incompatibility with GCC 4.8
1 parent 00473ec commit 3d16f50

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Future.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ class InternalState {
3535
using Listener = std::function<void(Result, const Type &)>;
3636
using Pair = std::pair<Result, Type>;
3737

38+
// NOTE: Add the constructor explicitly just to be compatible with GCC 4.8
39+
InternalState() : completed_(false) {}
40+
3841
void addListener(Listener listener) {
3942
if (completed()) {
4043
// Allow get_future() being called multiple times, only the 1st time will wait() be called to wait

0 commit comments

Comments
 (0)