{"id":111612,"date":"2025-09-19T07:00:00","date_gmt":"2025-09-19T14:00:00","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/oldnewthing\/?p=111612"},"modified":"2025-09-19T12:01:12","modified_gmt":"2025-09-19T19:01:12","slug":"20250919-00","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20250919-00\/?p=111612\/","title":{"rendered":"Learning to read C++ compiler errors: Not a legal base class"},"content":{"rendered":"<p>A colleague was trying to create a Windows Runtime delegate with WRL. Here&#8217;s a simplified version of what they wrote.<\/p>\n<pre>namespace ABI\r\n{\r\n    using namespace ABI::Windows::UI::ViewManagement;\r\n}\r\n\r\nstruct MyClass :\r\n    Microsoft::WRL::RuntimeClass&lt;\u27e6...\u27e7&gt;\r\n{\r\n    HRESULT OnInputPaneShowing(ABI::InputPane* sender,\r\n                               ABI::InputPaneVisibilityEventArgs* args);\r\n\r\n    void RegisterShowing(ABI::InputPane* inputPane);\r\n\r\n    EventRegistrationToken m_showingToken{};\r\n};\r\n<\/pre>\n<p>When they tried to create the delegate,<\/p>\n<pre>void MyClass::RegisterShowing(ABI::InputPane* inputPane)\r\n{\r\n    m_showingToken = inputPane-&gt;put_Showing(\r\n        Microsoft::WRL::Callback&lt;ABI::ITypedEventHandler&lt;\r\n            ABI::InputPane*,\r\n            ABI::InputPaneVisibilityEventArgs*&gt;&gt;(\r\n            &amp;MyClass::OnInputPaneShowing).Get());\r\n}\r\n<\/pre>\n<p>they got a quite lengthy error message.<\/p>\n<pre style=\"white-space: pre-wrap;\">wrl\\event.h(348,165): error C2516: 'Microsoft::<wbr \/>WRL::<wbr \/>Details::<wbr \/>RemoveReference&lt;TCallback&gt;::<wbr \/>Type': is not a legal base class\r\n    with\r\n    [\r\n        TCallback=HRESULT (__cdecl MyClass::* )(ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPane *,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>IInputPaneVisibilityEventArgs *)\r\n    ]\r\n(compiling source file 'test.cpp')\r\nwrl\\internal.h(96,19):\r\nsee declaration of 'Microsoft::<wbr \/>WRL::<wbr \/>Details::<wbr \/>RemoveReference&lt;TCallback&gt;::<wbr \/>Type'\r\n    with\r\n    [\r\n        TCallback=HRESULT (__cdecl MyClass::* )(ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPane *,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>IInputPaneVisibilityEventArgs *)\r\n    ]\r\nwrl\\event.h(348,165):\r\nthe template instantiation context (the oldest one first) is\r\n    test.cpp(134,30):\r\n    see reference to function template instantiation 'Microsoft::<wbr \/>WRL::<wbr \/>ComPtr&lt;TDelegateInterface&gt; Microsoft::<wbr \/>WRL::<wbr \/>Callback&lt;ABI::<wbr \/>Windows::<wbr \/>Foundation::<wbr \/>ITypedEventHandler&lt;ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPane*,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPaneVisibilityEventArgs*&gt;,HRESULT(__cdecl MyClass::* )(ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPane *,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>IInputPaneVisibilityEventArgs *)&gt;(TLambda &amp;&amp;) noexcept' being compiled\r\n    with\r\n    [\r\n        TDelegateInterface=ABI::<wbr \/>Windows::<wbr \/>Foundation::<wbr \/>ITypedEventHandler&lt;ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPane*,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPaneVisibilityEventArgs*&gt;,\r\n        TLambda=HRESULT (__cdecl MyClass::* )(ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPane *,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>IInputPaneVisibilityEventArgs *)\r\n    ]\r\n    wrl\\event.h(460,45):\r\n    see reference to function template instantiation 'Microsoft::<wbr \/>WRL::<wbr \/>ComPtr&lt;TDelegateInterface&gt; Microsoft::<wbr \/>WRL::<wbr \/>Details::<wbr \/>DelegateArgTraits&lt;HRESULT (__cdecl ABI::<wbr \/>Windows::<wbr \/>Foundation::<wbr \/>ITypedEventHandler_impl&lt;ABI::<wbr \/>Windows::<wbr \/>Foundation::<wbr \/>Internal::<wbr \/>AggregateType&lt;ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPane *,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>IInputPane <!--\r\n-->*&gt;,ABI::<wbr \/>Windows::<wbr \/>Foundation::<wbr \/>Internal::<wbr \/>AggregateType&lt;ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPaneVisibilityEventArgs *,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>IInputPaneVisibilityEventArgs *&gt;&gt;::* )(ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>IInputPane <!--\r\n-->*,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>IInputPaneVisibilityEventArgs *)&gt;::<wbr \/>Callback&lt;ABI::<wbr \/>Windows::<wbr \/>Foundation::<wbr \/>ITypedEventHandler&lt;ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPane*,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPaneVisibilityEventArgs*&gt;,ABI::<wbr \/>Windows::<wbr \/>Foundation::<wbr \/>ITypedEventHandler&lt;ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPane*,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPaneVisibilityEventArgs*&gt;,Microsoft::<wbr \/>WRL::<wbr \/>NoCheck,T&gt;(TLambda &amp;&amp;) noexcept' being compiled\r\n    with\r\n    [\r\n        TDelegateInterface=ABI::<wbr \/>Windows::<wbr \/>Foundation::<wbr \/>ITypedEventHandler&lt;ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPane*,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPaneVisibilityEventArgs*&gt;,\r\n        T=HRESULT (__cdecl MyClass::* )(ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPane *,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>IInputPaneVisibilityEventArgs *),\r\n        TLambda=HRESULT (__cdecl MyClass::* )(ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPane *,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>IInputPaneVisibilityEventArgs *)\r\n    ]\r\n    wrl\\event.h(367,9):\r\n    while compiling class template member function 'Microsoft::<wbr \/>WRL::<wbr \/>ComPtr&lt;TDelegateInterface&gt;::<wbr \/>ComPtr(Microsoft::<wbr \/>WRL::<wbr \/>ComPtr&lt;U&gt; &amp;&amp;,Details::<wbr \/>EnableIf&lt;Microsoft::<wbr \/>WRL::<wbr \/>Details::<wbr \/>IsConvertible&lt;U*,T*&gt;::<wbr \/>value,void*&gt;::<wbr \/>type *) noexcept'\r\n    with\r\n    [\r\n        TDelegateInterface=ABI::<wbr \/>Windows::<wbr \/>Foundation::<wbr \/>ITypedEventHandler&lt;ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPane*,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPaneVisibilityEventArgs*&gt;,\r\n        T=ABI::<wbr \/>Windows::<wbr \/>Foundation::<wbr \/>ITypedEventHandler&lt;ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPane*,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPaneVisibilityEventArgs*&gt;\r\n    ]\r\n    wrl\\event.h(367,9):\r\n    see reference to class template instantiation 'Microsoft::<wbr \/>WRL::<wbr \/>Details::<wbr \/>IsConvertible&lt;Microsoft::<wbr \/>WRL::<wbr \/>Details::<wbr \/>DelegateArgTraits&lt;HRESULT (__cdecl ABI::<wbr \/>Windows::<wbr \/>Foundation::<wbr \/>ITypedEventHandler_impl&lt;ABI::<wbr \/>Windows::<wbr \/>Foundation::<wbr \/>Internal::<wbr \/>AggregateType&lt;ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPane *,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>IInputPane *&gt;,ABI::<wbr \/>Windows::<wbr \/>Foundation::<wbr \/>Internal::<wbr \/>AggregateType&lt;ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPaneVisibilityEventArgs *,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>IInputPaneVisibilityEventArgs *&gt;&gt;::* <!--\r\n-->)(ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>IInputPane *,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>IInputPaneVisibilityEventArgs *)&gt;::<wbr \/>DelegateInvokeHelper&lt;ABI::<wbr \/>Windows::<wbr \/>Foundation::<wbr \/>ITypedEventHandler&lt;ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPane*,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPaneVisibilityEventArgs*&gt;,T,Microsoft::<wbr \/>WRL::<wbr \/>NoCheck,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>IInputPane *,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>IInputPaneVisibilityEventArgs *&gt; <!--\r\n-->*,ABI::<wbr \/>Windows::<wbr \/>Foundation::<wbr \/>ITypedEventHandler&lt;ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPane*,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPaneVisibilityEventArgs*&gt; *&gt;' being compiled\r\n    with\r\n    [\r\n        T=HRESULT (__cdecl MyClass::* )(ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPane *,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>IInputPaneVisibilityEventArgs *)\r\n    ]\r\n    wrl\\internal.h(67,35):\r\n    see reference to class template instantiation 'Microsoft::<wbr \/>WRL::<wbr \/>Details::<wbr \/>DelegateArgTraits&lt;HRESULT (__cdecl ABI::<wbr \/>Windows::<wbr \/>Foundation::<wbr \/>ITypedEventHandler_impl&lt;ABI::<wbr \/>Windows::<wbr \/>Foundation::<wbr \/>Internal::<wbr \/>AggregateType&lt;ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPane *,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>IInputPane *&gt;,ABI::<wbr \/>Windows::<wbr \/>Foundation::<wbr \/>Internal::<wbr \/>AggregateType&lt;ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPaneVisibilityEventArgs *,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>IInputPaneVisibilityEventArgs *&gt;&gt;::* <!--\r\n-->)(ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>IInputPane *,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>IInputPaneVisibilityEventArgs *)&gt;::<wbr \/>DelegateInvokeHelper&lt;ABI::<wbr \/>Windows::<wbr \/>Foundation::<wbr \/>ITypedEventHandler&lt;ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPane*,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPaneVisibilityEventArgs*&gt;,T,Microsoft::<wbr \/>WRL::<wbr \/>NoCheck,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>IInputPane *,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>IInputPaneVisibilityEventArgs *&gt;' being compiled\r\n    with\r\n    [\r\n        T=HRESULT (__cdecl MyClass::* )(ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPane *,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>IInputPaneVisibilityEventArgs *)\r\n    ]\r\n<\/pre>\n<p>As is typical of C++ error messages, the interesting things are at the start and the end.<\/p>\n<p>For the Microsoft Visual C++ compiler, the error message starts with the point where the compiler noticed the error, and it ends with a description of what piece of the original source code triggered that error. Though in this case, the &#8220;original source code&#8221; got buried in the middle because the compiler chose to show the instantiations oldest first.<\/p>\n<p>The compiler ran into a problem trying to create a derived class and realizing that the base class is invalid.<\/p>\n<pre style=\"white-space: pre-wrap;\">error C2516: 'Microsoft::<wbr \/>WRL::<wbr \/>Details::<wbr \/>RemoveReference&lt;<wbr \/>TCallback&gt;::<wbr \/>Type': is not a legal base class\r\n    with\r\n    [\r\n        TCallback=HRESULT (__cdecl MyClass::* )(ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>InputPane *,ABI::<wbr \/>Windows::<wbr \/>UI::<wbr \/>ViewManagement::<wbr \/>IInputPaneVisibilityEventArgs *)\r\n    ]\r\n<\/pre>\n<p>The <code>TCallback<\/code> is the type of the <code>&amp;MyClass::<wbr \/>OnInputPaneShowing<\/code>, and from the name, <code>Remove\u00adReference&lt;T&gt;<\/code> probably removes reference qualifiers. This is not reference-qualified, so it&#8217;s a nop, so the error message is saying<\/p>\n<pre>'decltype(&amp;MyClass::<wbr \/>Completed)': is not a legal base class\r\n<\/pre>\n<p>And that&#8217;s true. Pointers to member functions are not valid base classes.<\/p>\n<p>If we look at the line in question:<\/p>\n<pre style=\"white-space: pre-wrap;\">template&lt;typename TDelegateInterface, typename ...TArgs&gt;\r\nclass DelegateArgTraits&lt;\r\n        HRESULT (STDMETHODCALLTYPE TDelegateInterface::*)(TArgs...)&gt;\r\n{\r\n    template&lt;typename TOtherDelegateInterface,\r\n             typename TCallback,\r\n             DelegateCheckMode checkMode,\r\n             typename... TOtherArgs&gt;\r\n    struct DelegateInvokeHelper WrlFinal :\r\n        public ::Microsoft::WRL::RuntimeClass&lt;\r\n            RuntimeClassFlags&lt;Delegate&gt;, TOtherDelegateInterface&gt;,\r\n        <span style=\"border: solid 1px currentcolor;\">RemoveReference&lt;TCallback&gt;::Type<\/span>\r\n    {\r\n        DelegateInvokeHelper(TCallback&amp;&amp; callback) throw() :\r\n            RemoveReference&lt;TCallback&gt;::Type(\r\n                Details::Forward&lt;TCallback&gt;(callback)) {}\r\n\r\n        HRESULT STDMETHODCALLTYPE Invoke(TOtherArgs... args) throw() override\r\n        {\r\n            return DelegateTraits&lt;checkMode&gt;::CheckReturn(\r\n                (*this)(Details::Forward&lt;TOtherArgs&gt;(args)...));\r\n        }\r\n    };\r\n\r\n    \u27e6...\u27e7\r\n};\r\n<\/pre>\n<p>we see that the <code>DelegateInvokeHelper<\/code> removes references from <code>TCallback<\/code> and then derives from it. In our case, the <code>TCallback<\/code> was a pointer to a member function, and you can&#8217;t derive from that.<\/p>\n<p>Even if we got past that problem, the next issue is that the <code>Invoke<\/code> method tries to use the function call operator <code>operator()<\/code> to invoke the <code>TCallback<\/code>. But you can&#8217;t invoke pointers to member functions that way. You have to use the function call syntax in conjunction with an explicit object: <code>(<span style=\"border: solid 1px currentcolor;\">obj.*<\/span>callback)(args)<\/code>.<\/p>\n<p>Okay, so we see from the point of failure that the <code>TCallback<\/code> parameter must satisfy two criteria.<\/p>\n<ul>\n<li>Must be a class type that can be derived from.<\/li>\n<li>Must have a function call operator that can be invoked with the delegate arguments.<\/li>\n<\/ul>\n<p>It seems that the code wants to invoke the <code>OnCompleted<\/code> method on the <code>this<\/code> object, and we need to do that in the function call operator of a class type. Fortunately, C++ provides a handy syntax for this: A lambda.<\/p>\n<pre>void MyClass::RegisterShowing(ABI::InputPane* inputPane)\r\n{\r\n    m_showingToken = inputPane-&gt;put_Showing(\r\n        Microsoft::WRL::Callback&lt;ABI::ITypedEventHandler&lt;\r\n            ABI::InputPane*,\r\n            ABI::InputPaneVisibilityEventArgs*&gt;&gt;(\r\n            <span style=\"border: solid 1px currentcolor; border-bottom: none;\">[this](auto&amp;&amp;... args) {               <\/span>\r\n            <span style=\"border-left: solid 1px currentcolor;\">\u00a0<\/span><span style=\"border: 1px currentcolor; border-style: none solid solid none;\">   return OnInputPaneShowing(args...);<\/span>\r\n            <span style=\"border: solid 1px currentcolor; border-top: none;\">}<\/span>).Get());\r\n}\r\n<\/pre>\n<p>(We can be lazy about how we forward the arguments because we know that the ABI parameters don&#8217;t have move constructors, so forwarding is the same as copying.)<\/p>\n<p>Or if we look at the other overloads of <code>WRL::<wbr \/>Callback<\/code>, we see a family of callbacks that do exactly what we want.<\/p>\n<pre>template&lt;\r\n   typename TDelegateInterface,\r\n   typename TCallbackObject,\r\n   typename... TArgs\r\n&gt;\r\nComPtr&lt;TDelegateInterface&gt; Callback(\r\n   _In_ TCallbackObject *object,\r\n   _In_ HRESULT (TCallbackObject::* method)(TArgs...)\r\n);\r\n<\/pre>\n<p>Here is the implementation in the library:<\/p>\n<pre>template&lt;typename TDelegateInterface,\r\n         typename TCallbackObject,\r\n         typename... TArgs&gt;\r\nComPtr&lt;typename Details::DelegateArgTraitsHelper&lt;\r\n                        TDelegateInterface&gt;::Interface&gt;\r\nCallback(_In_ TCallbackObject *object,\r\n         _In_ HRESULT(TCallbackObject::* method)(TArgs...)) throw()\r\n{\r\n    return Callback&lt;TDelegateInterface&gt;(\r\n        [=](auto&amp;&amp; ...args)\r\n        { return ((*object).*(method))(args ...); });\r\n} \r\n<\/pre>\n<p>The lambda is identical to the one we created manually, so we can just use<\/p>\n<pre>void MyClass::RegisterCompletion(ABI::IAsyncAction* action)\r\n{\r\n    m_showingToken = inputPane-&gt;put_Showing(\r\n        Microsoft::WRL::Callback&lt;ABI::ITypedEventHandler&lt;\r\n            ABI::InputPane*,\r\n            ABI::InputPaneVisibilityEventArgs*&gt;&gt;(\r\n            <span style=\"border: solid 1px currentcolor;\">this,<\/span> &amp;MyClass::OnInputPaneShowing).Get());\r\n}\r\n<\/pre>\n<p>The purpose of the discussion was not to diagnose this specific use of the <code>WRL::<wbr \/>Callback<\/code> function but rather as an exercise in reading compiler error messages and reconciling the error text (that talks about what the compiler sees) with the original code in order to understand what the code was expecting, and why we failed to meet that expectation.<\/p>\n<p>Final note: Since <code>this<\/code> is captured as a raw pointer, we have to ensure that the <code>MyClass<\/code> object is not destroyed if there is a chance that the event handler could be called (or is in the middle of a call). We get away with it here because the input pane raises its events on the UI thread, so we don&#8217;t have to worry about an event being in flight or on its way at the time we unregister it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What would make it an illegal base class?<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[25],"class_list":["post-111612","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-code"],"acf":[],"blog_post_summary":"<p>What would make it an illegal base class?<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/111612","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=111612"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/111612\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=111612"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=111612"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=111612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}