#include <iostream>
#include <windows.h>
#include <fstream>
using namespace std;
struct test {
char a[10];
int b;
int c = 229;
};
typedef basic_ofstream<test, char_traits<test>> uofstream;
int main() {
test fstr = test{ "FLOL", 256 };
uofstream ubf("io.txt", ios::binary);
ubf.write(&fstr, sizeof(fstr));
ubf.close();
return 0;
}
C2440 'static_cast': cannot convert from 'const long' to '_Elem'