#include <vector> struct Eye{ int size; explicit Eye(int requestedSize) : size(requestedSize) {} template<typename T> operator std::vector<T>() const { std::vector<T> ma; ma.push_back(1); return ma; }}; std::vector<int> v = Eye(10);
Standard input is empty
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../crt1.o: In function `_start': (.text+0x18): undefined reference to `main' collect2: ld returned 1 exit status
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!