{"id":14197,"date":"2023-08-04T11:56:44","date_gmt":"2023-08-04T11:56:44","guid":{"rendered":"https:\/\/blog.bachi.net\/?p=14197"},"modified":"2023-08-04T12:01:11","modified_gmt":"2023-08-04T12:01:11","slug":"c-template","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=14197","title":{"rendered":"C++ template"},"content":{"rendered":"<h1>Undefined reference to template<\/h1>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/8752837\/undefined-reference-to-template-class-constructor\">&#8220;Undefined reference to&#8221; template class constructor [duplicate]<\/a><br \/>\n<a href=\"https:\/\/stackoverflow.com\/questions\/495021\/why-can-templates-only-be-implemented-in-the-header-file\">Why can templates only be implemented in the header file?<\/a><\/p>\n<h1>Error: template used without template parameters<\/h1>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/63412408\/c-error-templateclass-t-class-list-used-without-template-parameters\">c++ Error &#8216;template<class T> class List&#8217; used without template parameters<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Undefined reference to template &#8220;Undefined reference to&#8221; template class constructor [duplicate] Why can templates only be implemented in the header file? Error: template used without template parameters c++ Error &#8216;template class List&#8217; used without template parameters<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-14197","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/14197","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14197"}],"version-history":[{"count":3,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/14197\/revisions"}],"predecessor-version":[{"id":14201,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/14197\/revisions\/14201"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14197"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}