Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I need it to be used with strnd.wrap() aswell. I've changed it to this again:</p> <pre><code>sau_timer::sau_timer(int secs, timerparam f) : strnd(io), t(io, boost::posix_time::seconds(secs)) { assert(secs &gt; 0); this-&gt;f = f; t.async_wait(strnd.wrap(boost::bind(&amp;sau_timer::exec, this, _1))); boost::thread thrd(&amp;io); io.run(); } void sau_timer::exec(const boost::system::error_code&amp;) { (f)(params); } </code></pre> <p>But now I get these errors:</p> <pre><code>1&gt;------ Build started: Project: Sauria, Configuration: Debug Win32 ------ 1&gt;Compiling... 1&gt;sau_timer.cpp 1&gt;Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example: 1&gt;- add -D_WIN32_WINNT=0x0501 to the compiler command line; or 1&gt;- add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions. 1&gt;Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). 1&gt;c:\program files\boost\boost_1_39\boost\bind\bind.hpp(246) : error C2064: term does not evaluate to a function taking 1 arguments 1&gt; c:\program files\boost\boost_1_39\boost\bind\bind_template.hpp(20) : see reference to function template instantiation 'void boost::_bi::list1&lt;A1&gt;::operator ()&lt;F,boost::_bi::list0&gt;(boost::_bi::type&lt;T&gt;,F &amp;,A &amp;,int)' being compiled 1&gt; with 1&gt; [ 1&gt; A1=boost::_bi::value&lt;sau_timer *&gt;, 1&gt; F=boost::asio::io_service *, 1&gt; T=void, 1&gt; A=boost::_bi::list0 1&gt; ] 1&gt; c:\program files\boost\boost_1_39\boost\bind\bind_template.hpp(18) : while compiling class template member function 'void boost::_bi::bind_t&lt;R,F,L&gt;::operator ()(void)' 1&gt; with 1&gt; [ 1&gt; R=void, 1&gt; F=boost::asio::io_service *, 1&gt; L=boost::_bi::list1&lt;boost::_bi::value&lt;sau_timer *&gt;&gt; 1&gt; ] 1&gt; c:\program files\boost\boost_1_39\boost\thread\detail\thread.hpp(227) : see reference to class template instantiation 'boost::_bi::bind_t&lt;R,F,L&gt;' being compiled 1&gt; with 1&gt; [ 1&gt; R=void, 1&gt; F=boost::asio::io_service *, 1&gt; L=boost::_bi::list1&lt;boost::_bi::value&lt;sau_timer *&gt;&gt; 1&gt; ] 1&gt; c:\users\ben\documents\visual studio 2008\projects\sauria\sauria\sau_timer.cpp(11) : see reference to function template instantiation 'boost::thread::thread&lt;boost::asio::io_service*,sau_timer*&gt;(F,A1)' being compiled 1&gt; with 1&gt; [ 1&gt; F=boost::asio::io_service *, 1&gt; A1=sau_timer * 1&gt; ] 1&gt;Build log was saved at "file://c:\Users\Ben\Documents\Visual Studio 2008\Projects\Sauria\Sauria\Debug\BuildLog.htm" 1&gt;Sauria - 1 error(s), 0 warning(s) </code></pre> <p>========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload