Is it possible to use C++11 or higher in combination with GDNative?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Foxcataria

Hi community :slight_smile:

I just started to get into GDNative to write parts of my projects directly in C++.

But there is one thing I can’t find anything about: What is the highest supported version of C++ that I can use in combination with GDNative? Or could I use every version?

I ask this because I’ve read that the actual code base of Godot is mostly written in C++ up to version 03. Am I right? And I really want to use some C++ features introduced in version 11, like move semantics.
Maybe this question is really easy to answer but at the moment I do not have any deep understanding of how GDNative works internally.

:bust_in_silhouette: Reply From: chanon

I believe it would only depend on the compiler you use. Most compilers nowadays support C++11 so I think you should be ok.

:bust_in_silhouette: Reply From: guywithknife

Godot-cpp (the C++ interface to GDNative) actually requires C++11 or above.