Coding Global Background
Coding Global

what do they mean by non inline since c++17 ???

Archiviert a day ago
47 Nachrichten
3 Mitglieder
Erstellt a month ago
Aktualisiert a day ago
In Discord öffnen
0
Goku
Script Kiddie!
Declaration of a non-inline(since C++17) static data member inside a class definition:

struct S
{
    int n;               // defines S::n
    static int i;        // declares, but does not define S::i
    inline static int x; // defines S::x
};                       // defines S

int S::i;                // defines S::i




what do they mean by non inline since c++17 ???

source : https://cppreference.com/cpp/language/definition
do they mean inline variables are available since c++17 or what exactly ? i don't get it
UnoRouter KI API

Antworten (46)