coercing template category user t* flitting t* justification duty template


assume i have duty template this:



template<class t>
inline
void
dostuff(t* arr)
{
// things needs sizeof(t)
}


then another .h filee i have template category foo has:



public: user t*() const;


now, i comprehend those opposite ts. nonetheless i have non-static foo<bar> f stack, wholly proceed need any kind pointer plead operator t*(). yet, dostuff(f), gcc complains dostuff can't take foo<bar> instead automatically controlling user t*() need bar* following specializing duty template bar t.



is there anything i work twin templates? does presumably justification template duty have genuine pointer form template category duress user upheld non-template function?



Comments

Popular posts from this blog

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?

grails record upload problems

how i emanate permitted url asp.net mvc?