stream-like-behavior problem

This is a discussion on stream-like-behavior problem within the C++ Programming forums, part of the General Programming Boards category; Hello. I want to write an initializer list method. I'm looking for the form:
Code:
std::stl_containter<double> thing = initializer<<43.4<<22233.43<<12.32;
Simple ...

Perhaps I could make it thread safe by having
>> init_type<T> operator << (dummy_type & d, const T & t)
return a *(new init_type). Then I'd want init_type to destroy itself
once it has been cast into a container.

The only thing I can see wrong with it would be that if the caller never calls operator vector<T>(), then the memory would never be freed. I realize that this is incredibly unlikely, and may not be a concern since that would just defy it's usage anyway. So I guess, practically speaking, it appears safe.