[ ] C++14 |
struct complicated_struct {
int i;
short s;
double d;
unsigned u;
};
#include
#include "magic_get.hpp"
struct complicated_struct { /* */ };
int main() {
using namespace pod_ops;
complicated_struct s {1, 2, 3.0, 4};
std::cout << "s == " << s << std::endl; // Compile time error?
}
antoshkka@home:~$ ./test
s == {1, 2, 3.0, 4}