Implementing Recursive Proxy pattern in C++11
问题 Suppose we have some Foo object that allows: cout << myFoo[3]; myFoo[5] = "bar"; This calls for a proxy design-pattern (detailed by Scott Meyers here) But now let us suppose every myFoo[i] is also a Foo instance. myFoo[7] = Foo{...}; myFoo[5] = "bar"; // Foo has a Foo(std::string) non-explicit constructor I'm close to having an implementation, but I can't get rid of one final pesky "forward declaration/ incomplete type" error. Firstly, let's get the easy one out of the way: // x =