Boost C++ Libraries: Ticket #10841: runtime error boost::numeric:;odeint:: https://svn.boost.org/trac10/ticket/10841 <p> Dear all, </p> <p> I encountered a run-time error while using odeint. In a class method this command is executed: </p> <pre class="wiki">size_t size =boost::numeric::odeint::integrate(model, x, 0.0, 1.0, 0.1); </pre><p> when x is a VECTOR defined as: </p> <pre class="wiki">typedef std::vector&lt;double&gt; state_type; </pre><p> No compile, link errors occur; however, in run-time following window pops up after some iteration of the integrator. It says: <strong>vector iterator not incrementable.</strong> as shown in figure attached. </p> <p> By changing vector definition to array definition the problem will be resolved. So the following works when 3 is number of states: </p> <pre class="wiki">typedef boost::array&lt; double , 3 &gt; state_type; </pre><p> This problem happens by use of the odeint-v2 commit messaged "fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/142" title="#142: Bugs: Build config for gcc: GCC and GXX variables broken (closed: Fixed)">#142</a>, fixes boost include issue in bjam" and boost 1.56.0 on Windows 8 64 bits, Visual Studio 2012, platform v110 (equivalent c++11). </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10841 Trac 1.4.3 taghia.javad@… Wed, 03 Dec 2014 04:33:23 GMT attachment set https://svn.boost.org/trac10/ticket/10841 https://svn.boost.org/trac10/ticket/10841 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">12.png</span> </li> </ul> <p> error message snap shot </p> Ticket karsten Thu, 29 Jan 2015 21:43:18 GMT <link>https://svn.boost.org/trac10/ticket/10841#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10841#comment:1</guid> <description> <p> Can you give a small and complete self contained example. From your description it is not possible to figure out what it happening. </p> </description> <category>Ticket</category> </item> </channel> </rss>