Commit Graph

5 Commits

Author SHA1 Message Date
Eike Ziller
d400dce35d Require GCC 7 and enable C++17
Fix MSVC2019
- result type of conditional expression is ambiguous:
  types 'const char [1]' and 'QByteArray' can be converted
  to multiple common types

Fix MinGW 8.1
- undefined reference to SemanticHighlightNotification::methodName

Fix Utils::transform with std::vector for GCC & MSVC

Unfortunately we cannot get rid of the special variant and optional
implementations, because Apple Clang requires deployment target >= 10.14
for the functions that can throw std::bad_optional_access.

Fixes: QTCREATORBUG-20520
Change-Id: I5c36a70f21f8b0215d2f4fc5c0653a022778d928
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-07-10 11:52:24 +00:00
David Schulz
07d3f80b54 Utils: make nullopt_t available in the Utils namespace
Change-Id: I7e8084b4fce5cdda88435453e096ef0b9530d00d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2018-05-16 08:34:50 +00:00
Orgad Shaneh
75f13f200b Utils: Fix comment in optional.h
Change-Id: I082c939469d0161d5ed5f9da810bd6b553750ce0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2017-09-25 08:45:17 +00:00
Marco Bubke
e88a081213 Utils: Import std::experimental::in_place to Utils namespace
It is needed to construct an optional in place.

Change-Id: I92e6bec6a33b469d806d3144ea9eb8c64d25580f
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2017-09-21 12:35:29 +00:00
Eike Ziller
93f4fb771f Add std::experimental::optional as Utils::optional
Uses the reference implementation of the proposal, which later
can be replaced by the std lib implementation depending on compiler
and used C++ version.

Change-Id: I23f2f8077f4cb26c3d9a403b1ce438b6cdb163f2
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-06-16 12:19:27 +00:00