¡@

Home 

c++ Programming Glossary: make_obj

declare template friend function of template class

http://stackoverflow.com/questions/18792565/declare-template-friend-function-of-template-class

of template class I have a templated class Obj and a make_obj function. Obj has a single constructor defined which takes a.. T t Obj T t t t Obj delete template typename T Obj T make_obj T t return Obj T t As you can see this constructor is private... this constructor is private. What I want is to declare the make_obj function a friend so that it can create Obj 's but no one else..