mirror of
https://github.com/LMMS/lmms.git
synced 2026-01-25 23:08:12 -05:00
* locale: using path instead of individual files to reduce command line size * remotevstplugin: changed order return type & calling convention (compiler error) * lmmsobj: removed single quotes for command line defines * added vcpkg support & std::make_unique for MSVC * carla: include exports header * package_linux: corrected RemoteVstPlugin name * vstbase: toolchain file conditional on MSVC * Added install for remotevstplugin * msvc: installer works with vcpkg Remotevst 64bit install removed due to an ApImage problem
28 lines
635 B
C++
28 lines
635 B
C++
//! Shims for std:: functions that aren't available in the current C++ versions
|
|
//! we target.
|
|
|
|
#ifndef STDSHIMS_H
|
|
#define STDSHIMS_H
|
|
|
|
#include <memory>
|
|
#include <utility>
|
|
|
|
#if (__cplusplus >= 201402L || _MSC_VER)
|
|
#ifndef _MSC_VER
|
|
#warning "This file should now be removed! The functions it provides are part of the C++14 standard."
|
|
#endif
|
|
using std::make_unique;
|
|
|
|
#else
|
|
|
|
/// Shim for http://en.cppreference.com/w/cpp/memory/unique_ptr/make_unique
|
|
template<typename T, typename... Args>
|
|
std::unique_ptr<T> make_unique(Args&&... args)
|
|
{
|
|
return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
|
|
}
|
|
#endif
|
|
|
|
#endif // include guard
|
|
|