<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 167: Compiling errors with wxWidgets 3.0.2 on webUpdate</title><link href="https://sourceforge.net/p/wxcode/bugs/167/" rel="alternate"/><link href="https://sourceforge.net/p/wxcode/bugs/167/feed.atom" rel="self"/><id>https://sourceforge.net/p/wxcode/bugs/167/</id><updated>2015-08-13T06:24:52.987000Z</updated><subtitle>Recent changes to 167: Compiling errors with wxWidgets 3.0.2 on webUpdate</subtitle><entry><title>Compiling errors with wxWidgets 3.0.2 on webUpdate</title><link href="https://sourceforge.net/p/wxcode/bugs/167/" rel="alternate"/><published>2015-08-13T06:24:52.987000Z</published><updated>2015-08-13T06:24:52.987000Z</updated><author><name>Li Minggang</name><uri>https://sourceforge.net/u/liminggang/</uri></author><id>https://sourceforge.net7e8671bc03a97e59d9ad1776bfa0a32d982e2df5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Build latest webupdate with VS 2010 for X64, got errors like below:&lt;/p&gt;
&lt;p&gt;1&amp;gt;d:\wxWidgets-3.0.2\include\wx/any.h(216): error C2061: syntax error : identifier 'place'&lt;br/&gt;
1&amp;gt;          d:\wxWidgets-3.0.2\include\wx/any.h(213) : while compiling class template member function 'void wxPrivate::wxAnyValueTypeOpsInplace&amp;lt;T&amp;gt;::SetValue(const T &amp;amp;,wxAnyValueBuffer &amp;amp;)'&lt;br/&gt;
1&amp;gt;          with&lt;br/&gt;
1&amp;gt;          &lt;a class="" href="../1&amp;gt;%20%20%20%20%20%20%20%20%20%20%20%20%20%20T=wxAnyBaseIntType
1&amp;gt;"&gt;&lt;br/&gt;
1&amp;gt;              T=wxAnyBaseIntType&lt;br/&gt;
1&amp;gt;      &lt;br/&gt;
&lt;br/&gt;
&lt;/a&gt;&lt;br/&gt;
1&amp;gt;          d:\wxWidgets-3.0.2\include\wx/any.h(293) : see reference to class template instantiation 'wxPrivate::wxAnyValueTypeOpsInplace&amp;lt;T&amp;gt;' being compiled&lt;br/&gt;
1&amp;gt;          with&lt;br/&gt;
1&amp;gt;          &lt;a class="" href="../1&amp;gt;%20%20%20%20%20%20%20%20%20%20%20%20%20%20T=wxAnyBaseIntType
1&amp;gt;"&gt;&lt;br/&gt;
1&amp;gt;              T=wxAnyBaseIntType&lt;br/&gt;
1&amp;gt;      &lt;br/&gt;
&lt;br/&gt;
&lt;/a&gt;&lt;br/&gt;
1&amp;gt;          d:\wxWidgets-3.0.2\include\wx/any.h(292) : while compiling class template member function 'void wxAnyValueTypeImplBase&amp;lt;T&amp;gt;::DeleteValue(wxAnyValueBuffer &amp;amp;) const'&lt;br/&gt;
1&amp;gt;          with&lt;br/&gt;
1&amp;gt;          &lt;a class="" href="../1&amp;gt;%20%20%20%20%20%20%20%20%20%20%20%20%20%20T=wxAnyBaseIntType
1&amp;gt;"&gt;&lt;br/&gt;
1&amp;gt;              T=wxAnyBaseIntType&lt;br/&gt;
1&amp;gt;      &lt;br/&gt;
&lt;br/&gt;
&lt;/a&gt;&lt;br/&gt;
1&amp;gt;          d:\wxWidgets-3.0.2\include\wx/any.h(412) : see reference to class template instantiation 'wxAnyValueTypeImplBase&amp;lt;T&amp;gt;' being compiled&lt;br/&gt;
1&amp;gt;          with&lt;br/&gt;
1&amp;gt;          &lt;a class="" href="../1&amp;gt;%20%20%20%20%20%20%20%20%20%20%20%20%20%20T=wxAnyBaseIntType
1&amp;gt;"&gt;&lt;br/&gt;
1&amp;gt;              T=wxAnyBaseIntType&lt;br/&gt;
1&amp;gt;      &lt;br/&gt;
&lt;br/&gt;
&lt;/a&gt;&lt;br/&gt;
1&amp;gt;D:\minimal\webupdate\include\wx/webupdate.h(126): warning C4996: 'wxLog::DoLog': was declared deprecated&lt;br/&gt;
1&amp;gt;          d:\wxWidgets-3.0.2\include\wx/log.h(619) : see declaration of 'wxLog::DoLog'&lt;br/&gt;
1&amp;gt;webupdate\src\webupdate.cpp(352): warning C4996: 'wxLog::DoLog': was declared deprecated&lt;br/&gt;
1&amp;gt;          d:\wxWidgets-3.0.2\include\wx/log.h(619) : see declaration of 'wxLog::DoLog'&lt;br/&gt;
1&amp;gt;webupdate\src\webupdate.cpp(352): warning C4996: 'wxLog::DoLog': was declared deprecated&lt;br/&gt;
1&amp;gt;          d:\wxWidgets-3.0.2\include\wx/log.h(619) : see declaration of 'wxLog::DoLog'&lt;br/&gt;
1&amp;gt;webupdate\src\webupdate.cpp(395): warning C4996: 'wxLog::DoLog': was declared deprecated&lt;br/&gt;
1&amp;gt;          d:\wxWidgets-3.0.2\include\wx/log.h(619) : see declaration of 'wxLog::DoLog'&lt;br/&gt;
1&amp;gt;webupdate\src\webupdate.cpp(395): warning C4996: 'wxLog::DoLog': was declared deprecated&lt;br/&gt;
1&amp;gt;          d:\wxWidgets-3.0.2\include\wx/log.h(619) : see declaration of 'wxLog::DoLog'&lt;br/&gt;
1&amp;gt;d:\wxWidgets-3.0.2\include\wx/any.h(216): error C2061: syntax error : identifier 'place'&lt;br/&gt;
1&amp;gt;          d:\wxWidgets-3.0.2\include\wx/any.h(213) : while compiling class template member function 'void wxPrivate::wxAnyValueTypeOpsInplace&amp;lt;T&amp;gt;::SetValue(const T &amp;amp;,wxAnyValueBuffer &amp;amp;)'&lt;br/&gt;
1&amp;gt;          with&lt;br/&gt;
1&amp;gt;          &lt;a class="" href="../1&amp;gt;%20%20%20%20%20%20%20%20%20%20%20%20%20%20T=wxAnyBaseIntType
1&amp;gt;"&gt;&lt;br/&gt;
1&amp;gt;              T=wxAnyBaseIntType&lt;br/&gt;
1&amp;gt;      &lt;br/&gt;
&lt;br/&gt;
&lt;/a&gt;&lt;br/&gt;
1&amp;gt;          d:\wxWidgets-3.0.2\include\wx/any.h(293) : see reference to class template instantiation 'wxPrivate::wxAnyValueTypeOpsInplace&amp;lt;T&amp;gt;' being compiled&lt;br/&gt;
1&amp;gt;          with&lt;br/&gt;
1&amp;gt;          &lt;a class="" href="../1&amp;gt;%20%20%20%20%20%20%20%20%20%20%20%20%20%20T=wxAnyBaseIntType
1&amp;gt;"&gt;&lt;br/&gt;
1&amp;gt;              T=wxAnyBaseIntType&lt;br/&gt;
1&amp;gt;      &lt;br/&gt;
&lt;br/&gt;
&lt;/a&gt;&lt;br/&gt;
1&amp;gt;          d:\wxWidgets-3.0.2\include\wx/any.h(292) : while compiling class template member function 'void wxAnyValueTypeImplBase&amp;lt;T&amp;gt;::DeleteValue(wxAnyValueBuffer &amp;amp;) const'&lt;br/&gt;
1&amp;gt;          with&lt;br/&gt;
1&amp;gt;          &lt;a class="" href="../1&amp;gt;%20%20%20%20%20%20%20%20%20%20%20%20%20%20T=wxAnyBaseIntType
1&amp;gt;"&gt;&lt;br/&gt;
1&amp;gt;              T=wxAnyBaseIntType&lt;br/&gt;
1&amp;gt;      &lt;br/&gt;
&lt;br/&gt;
&lt;/a&gt;&lt;br/&gt;
1&amp;gt;          d:\wxWidgets-3.0.2\include\wx/any.h(412) : see reference to class template instantiation 'wxAnyValueTypeImplBase&amp;lt;T&amp;gt;' being compiled&lt;br/&gt;
1&amp;gt;          with&lt;br/&gt;
1&amp;gt;          &lt;a class="" href="../1&amp;gt;%20%20%20%20%20%20%20%20%20%20%20%20%20%20T=wxAnyBaseIntType
1&amp;gt;"&gt;&lt;br/&gt;
1&amp;gt;              T=wxAnyBaseIntType&lt;br/&gt;
1&amp;gt;      &lt;br/&gt;
&lt;br/&gt;
&lt;/a&gt;&lt;br/&gt;
1&amp;gt;d:\wxWidgets-3.0.2\include\wx/any.h(216): error C2061: syntax error : identifier 'place'&lt;br/&gt;
1&amp;gt;          d:\wxWidgets-3.0.2\include\wx/any.h(213) : while compiling class template member function 'void wxPrivate::wxAnyValueTypeOpsInplace&amp;lt;T&amp;gt;::SetValue(const T &amp;amp;,wxAnyValueBuffer &amp;amp;)'&lt;br/&gt;
1&amp;gt;          with&lt;br/&gt;
1&amp;gt;          &lt;a class="" href="../1&amp;gt;%20%20%20%20%20%20%20%20%20%20%20%20%20%20T=wxAnyBaseIntType
1&amp;gt;"&gt;&lt;br/&gt;
1&amp;gt;              T=wxAnyBaseIntType&lt;br/&gt;
1&amp;gt;      &lt;br/&gt;
&lt;br/&gt;
&lt;/a&gt;&lt;br/&gt;
1&amp;gt;          d:\wxWidgets-3.0.2\include\wx/any.h(293) : see reference to class template instantiation 'wxPrivate::wxAnyValueTypeOpsInplace&amp;lt;T&amp;gt;' being compiled&lt;br/&gt;
1&amp;gt;          with&lt;br/&gt;
1&amp;gt;          &lt;a class="" href="../1&amp;gt;%20%20%20%20%20%20%20%20%20%20%20%20%20%20T=wxAnyBaseIntType
1&amp;gt;"&gt;&lt;br/&gt;
1&amp;gt;              T=wxAnyBaseIntType&lt;br/&gt;
1&amp;gt;      &lt;br/&gt;
&lt;br/&gt;
&lt;/a&gt;&lt;br/&gt;
1&amp;gt;          d:\wxWidgets-3.0.2\include\wx/any.h(292) : while compiling class template member function 'void wxAnyValueTypeImplBase&amp;lt;T&amp;gt;::DeleteValue(wxAnyValueBuffer &amp;amp;) const'&lt;br/&gt;
1&amp;gt;          with&lt;br/&gt;
1&amp;gt;          &lt;a class="" href="../1&amp;gt;%20%20%20%20%20%20%20%20%20%20%20%20%20%20T=wxAnyBaseIntType
1&amp;gt;"&gt;&lt;br/&gt;
1&amp;gt;              T=wxAnyBaseIntType&lt;br/&gt;
1&amp;gt;      &lt;br/&gt;
&lt;br/&gt;
&lt;/a&gt;&lt;br/&gt;
1&amp;gt;          d:\wxWidgets-3.0.2\include\wx/any.h(412) : see reference to class template instantiation 'wxAnyValueTypeImplBase&amp;lt;T&amp;gt;' being compiled&lt;br/&gt;
1&amp;gt;          with&lt;br/&gt;
1&amp;gt;          &lt;a class="" href="../1&amp;gt;%20%20%20%20%20%20%20%20%20%20%20%20%20%20T=wxAnyBaseIntType
1&amp;gt;"&gt;&lt;br/&gt;
1&amp;gt;              T=wxAnyBaseIntType&lt;br/&gt;
1&amp;gt;      &lt;br/&gt;
&lt;br/&gt;
&lt;/a&gt;&lt;br/&gt;
1&amp;gt;D:\minimal\webupdate\include\wx/webupdate.h(126): warning C4996: 'wxLog::DoLog': was declared deprecated&lt;br/&gt;
1&amp;gt;          d:\wxWidgets-3.0.2\include\wx/log.h(619) : see declaration of 'wxLog::DoLog'&lt;br/&gt;
1&amp;gt;&lt;br/&gt;
1&amp;gt;Build FAILED.&lt;br/&gt;
1&amp;gt;&lt;br/&gt;
1&amp;gt;Time Elapsed 00:00:03.98&lt;br/&gt;
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========&lt;/p&gt;
&lt;p&gt;The code in any.h is a placement new.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;static void SetValue(const T&amp;amp; value,
                     wxAnyValueBuffer&amp;amp; buf)
{
    // Use placement new
    void* const place = buf.m_buffer;
    ::new(place) T(value);
}
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry></feed>