{"id":1113,"date":"2022-08-30T15:12:36","date_gmt":"2022-08-30T15:12:36","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/vs2012-sp1-november-pack-unknown-type-errors-alike-cat-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:12:36","modified_gmt":"2022-08-30T15:12:36","slug":"vs2012-sp1-november-pack-unknown-type-errors-alike-cat-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/vs2012-sp1-november-pack-unknown-type-errors-alike-cat-collection-of-common-programming-errors\/","title":{"rendered":"VS2012 SP1 (+november pack) unknown-type errors (alike C::a(T &amp;&amp;&hellip;) )-Collection of common programming errors"},"content":{"rendered":"<p>[This answer has been updated. See the <strong>EDIT<\/strong> at the end of the text]<\/p>\n<p>I brought this down to an SSCCE:<\/p>\n<pre><code>#include \n\nstruct A { A g(int) { return A(); } };\nstruct B { B g() { return B(); } };\n\nstruct C\n{\n    template\n    auto f(Ts... ts) -&gt; decltype(A().g(ts...)) \n    { std::cout<\/code><\/pre>\n<p id=\"rop\"><small>Originally posted 2013-11-09 23:29:45. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>[This answer has been updated. See the EDIT at the end of the text] I brought this down to an SSCCE: #include struct A { A g(int) { return A(); } }; struct B { B g() { return B(); } }; struct C { template auto f(Ts&#8230; ts) -&gt; decltype(A().g(ts&#8230;)) { std::cout Originally posted [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1113","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1113"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1113\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}