This repository has been archived on 2024-05-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ORB_SLAM3/Thirdparty/Pangolin-0.6/include/pangolin/compat/variant.h
2022-01-20 20:20:08 +02:00

26 lines
453 B
C++

#pragma once
#include <pangolin/platform.h>
// Use either C++17 variant, or the standalone backwards compatible version
// of M. Park.
#if (__cplusplus >= 201703L)
# include <variant>
#else
# include <mpark/variant.hpp>
#endif
namespace pangolin {
#if (__cplusplus >= 201703L)
using std::variant;
using std::get;
using std::get_if;
using std::visit;
#else
using mpark::variant;
using mpark::get;
using mpark::get_if;
using mpark::visit;
#endif
}