I am new to C++ (know some python but not fluent) and am learning from reference documentations.
#include <iostream>
#include <stdalign.h>
using namespace std;
int main(){
alignof; //error:'alignof' not declared in this scope
}
I added stalign header, but I am still getting the same error. I also tried std::algnment_of, but still the same problem.
I am using the Dev-C++ compiler.
Edit: I am only experimenting, while learning about data structure alignment.