{"id":168,"date":"2011-03-04T13:53:23","date_gmt":"2011-03-04T11:53:23","guid":{"rendered":"http:\/\/blog.the-leviathan.ch\/?p=168"},"modified":"2011-03-04T13:56:15","modified_gmt":"2011-03-04T11:56:15","slug":"c-classstruct","status":"publish","type":"post","link":"https:\/\/blog.the-leviathan.ch\/?p=168","title":{"rendered":"C++ &#8211; Class:Struct"},"content":{"rendered":"<p>Hi<br \/>\nEver tried this one?<\/p>\n<pre>struct foo_struct {\r\nint bar;\r\ndouble bar2;\r\n};\r\n\r\nclass foo2 : public foo_struct\r\n{\r\nint foobel;\r\n};\r\n<\/pre>\n<p>&#8230; Now I can imagine how C++ ISO was created:<\/p>\n<p>&#8220;Hey I&#8217;ve got some money left, let&#8217;s do an ISO standard&#8221;<\/p>\n<p>&#8220;Isn&#8217;t that a lot of work?&#8221;<\/p>\n<p>&#8220;Nah, just let&#8217;s take C, rename structs into classes, turn default heritage policy from private to public and call it &#8216;C with classes'&#8221;<\/p>\n<p>&#8220;Ey dude! Great idea! Lets do it!&#8221;<\/p>\n<p>&#8230; &gt;_&lt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi Ever tried this one? struct foo_struct { int bar; double bar2; }; class foo2 : public foo_struct { int foobel; }; &#8230; Now I can imagine how C++ ISO was created: &#8220;Hey I&#8217;ve got some money left, let&#8217;s do an ISO standard&#8221; &#8220;Isn&#8217;t that a lot of work?&#8221; &#8220;Nah, just let&#8217;s take C, rename &hellip; <a href=\"https:\/\/blog.the-leviathan.ch\/?p=168\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">C++ &#8211; Class:Struct<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/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-168","post","type-post","status-publish","format-standard","hentry","category-daily"],"_links":{"self":[{"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/posts\/168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=168"}],"version-history":[{"count":4,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/posts\/168\/revisions"}],"predecessor-version":[{"id":174,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/posts\/168\/revisions\/174"}],"wp:attachment":[{"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}