実現したいこと
コンパイルエラー
'make_unique' is not a member of 'std'
を解決したい。
前提
arduinoIDE 1.18.19 でのコンパイルです。
ライブラリィをインクルードしてコンパイルすると
'make_unique' is not a member of 'std'
のエラーが出ます。
C++14で有効な宣言が仕様されているような事までは分かったのですが
対処方法を教えてください。
意味も分からず、
メインプログラムに、下記を記述してみたのですが解決されませんでした。
namespace std
{
template<typename T, typename... Args>
std::unique_ptr<T> make_unique(Args&&... args)
{
return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
}
}
