Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:

- name: OSX/clang/SCons build
os: osx
osx_image: xcode11
osx_image: xcode9.3
compiler: clang
cache:
directories:
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:

- name: OSX/clang/CMake build
os: osx
osx_image: xcode11
osx_image: xcode9.3
compiler: clang
cache:
ccache: true
Expand Down
21 changes: 0 additions & 21 deletions src/util/optional.h
Original file line number Diff line number Diff line change
@@ -1,28 +1,7 @@
#pragma once

#if __has_include(<optional>) || \
(defined(__cpp_lib_optional) && __cpp_lib_optional >= 201606L)

#include <optional>

#else

#include <experimental/optional>

namespace std {

using std::experimental::make_optional;
using std::experimental::nullopt;
using std::experimental::optional;

// Workarounds for missing member functions:
// option::has_value() -> explicit operator bool()
// option::value() -> operator*()

} // namespace std

#endif

#include <QtDebug>

template<typename T>
Expand Down