Nanotrace: Fix build with older Xcode

Change-Id: Ia0f29844ba95fc75199cbfd98932d5bf4c270335
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Christian Stenger
2022-02-17 08:56:00 +01:00
parent 85976b3caf
commit 22b9628d54
2 changed files with 3 additions and 3 deletions

View File

@@ -60,7 +60,7 @@ struct ConvertArgValueToString {
std::string Arg::value() const std::string Arg::value() const
{ {
return std::visit(ConvertArgValueToString(), m_value); return Utils::visit(ConvertArgValueToString(), m_value);
} }

View File

@@ -33,9 +33,9 @@
# define NANOTRACESHARED_EXPORT Q_DECL_IMPORT # define NANOTRACESHARED_EXPORT Q_DECL_IMPORT
#endif #endif
#include <utils/variant.h> // revert when macos minimum target is >= 10.14
#include <string> #include <string>
#include <variant>
#include <vector> #include <vector>
@@ -80,7 +80,7 @@ using TimePoint = std::chrono::time_point< Clock >;
class NANOTRACESHARED_EXPORT Arg class NANOTRACESHARED_EXPORT Arg
{ {
public: public:
using SupportedType = std::variant<int, int64_t, double, std::string>; using SupportedType = Utils::variant<int, int64_t, double, std::string>;
Arg(const std::string &name, const SupportedType &val); Arg(const std::string &name, const SupportedType &val);
std::string name() const; std::string name() const;