A
Adrian Hawryluk
I'm implementing an algorithm that will fill a container with the same
item. However, my object creation function isn't working correctly.
This should auto detect the types based on the parameters it was passed.
But I must be missing something as it will not compile.
template<typename dest_t, typename src_t>
inline fill<dest_t, src_t> make_fill(dest_t& dest, src_t& src) //< error
{
return fill<dest_t, src_t>(src);
}
.../arrayTest1.h:68: error: expected init-declarator before '<' token
.../arrayTest1.h:68: error: expected `;' before '<' token
Thanks in advance.
Adrian
--
_____________________________________________________________________
\/Adrian_Hawryluk BSc. - Specialties: UML, OOPD, Real-Time Systems\/
\ My newsgroup writings are licensed under the Creative Commons /
\ Attribution-Noncommercial-Share Alike 3.0 License /
\_____[http://creativecommons.org/licenses/by-nc-sa/3.0/]_____/
\/______[blog:__http://adrians-musings.blogspot.com/]______\/
item. However, my object creation function isn't working correctly.
This should auto detect the types based on the parameters it was passed.
But I must be missing something as it will not compile.
template<typename dest_t, typename src_t>
inline fill<dest_t, src_t> make_fill(dest_t& dest, src_t& src) //< error
{
return fill<dest_t, src_t>(src);
}
.../arrayTest1.h:68: error: expected init-declarator before '<' token
.../arrayTest1.h:68: error: expected `;' before '<' token
Thanks in advance.
Adrian
--
_____________________________________________________________________
\/Adrian_Hawryluk BSc. - Specialties: UML, OOPD, Real-Time Systems\/
\ My newsgroup writings are licensed under the Creative Commons /
\ Attribution-Noncommercial-Share Alike 3.0 License /
\_____[http://creativecommons.org/licenses/by-nc-sa/3.0/]_____/
\/______[blog:__http://adrians-musings.blogspot.com/]______\/