Hi,<div><br></div><div>Whenever I have had to work with templates in C++, I have felt a shiver. I am not sure if its just me, but I find something about templates that makes me think that it is not working the way it is supposed to. Besides, there are many forums and tutorials that discuss how to use templates with multiple files. What surprises me is that the use of template forces one to 'include' the implementation file and  cannot compile it separately, which seems a more intuitive behavior. </div>
<div><br></div><div>I heard about a purely object oriented design in SCALA and was pretty impressed by that. All objects inherit from "ANY" object. That is something that will allow templates in C++ to be far simpler than what the current implementation is .</div>
<div><br></div><div>Is there any library in C++ that re-creates the existing data-types in a similar manner ? Or if such a library is created, would it be useful ? </div><div><br></div><div>I have the following structure (tree-like) in mind.</div>
<div><br></div><div><br></div><div>AnyClass</div><div>   OrderedType</div><div>       Integer</div><div>       Float</div><div>       UInt</div><div>       Double</div><div>       BigInt</div><div>       Char</div><div>       String</div>
<div><br></div><div><br></div><div>This is just a basic idea. I was thinking of implementing something like Trees and Lists using this structure (mainly OrderedType), that will allow me to demonstrate the use of the library replacing templates. </div>
<div><br></div><div><br></div><div>Need suggestions and opinion</div><div><br></div><div><br></div><div>  </div><div><br></div><div><br></div>