C++ (Qt)struct Example{ int param1; int param2; Example(int param1, int param2) : param1{param1}, param2{param2} {}};
C++ (Qt)struct Point { int x, y;};
#include <iostream>#include <string>std::string _reserved = "global";struct base{ std::string _reserved = "member"; };template<class t> struct sample: t{ void set(const std::string& v) { _reserved = v; }};int main(){ sample<base> s; s.set("UB"); std::cout << s._reserved << '\n';}