Why can templates only be implemented in the header file?

Subscribers:
4,130
Published on ● Video Link: https://www.youtube.com/watch?v=EU0OKc0X_ws



Duration: 5:48
14 views
0


Why can templates only be implemented in the header file?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!

(stackoverflow.com/users/52913/mainid)MainID |
(stackoverflow.com/users/20984/luc-touraille)Luc Touraille |
(stackoverflow.com/users/450128/ben)Ben |
(stackoverflow.com/users/147749/mahuja)MaHuJa |
(stackoverflow.com/users/42136/david-hanak)David Hanak |
(stackoverflow.com/users/60281/devsolar)DevSolar |
A special thanks goes out to the (https://stackoverflow.com/questions/495021/why-can-templates-only-be-implemented-in-the-header-file)Stackexchange community |

I wish you all a wonderful day! Stay safe :)

c++-faq templates undefined-reference c++







Tags:
c++-faq
templates
undefined-reference
c++