Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I have faced the same problem and managed to track it down to the following function in exception_ptr.hpp:</p> <pre><code> template &lt;class Exception&gt; exception_ptr get_static_exception_object() { Exception ba; exception_detail::clone_impl&lt;Exception&gt; c(ba); c &lt;&lt; throw_function(BOOST_CURRENT_FUNCTION) &lt;&lt; throw_file(__FILE__) &lt;&lt; throw_line(__LINE__); static exception_ptr ep(shared_ptr&lt;exception_detail::clone_base const&gt;(new exception_detail::clone_impl&lt;Exception&gt;(c))); return ep; } </code></pre> <p>The problematic part here is: <strong>static exception_ptr ep(...</strong></p> <p>You can just remove static and it should work:</p> <pre><code> template &lt;class Exception&gt; exception_ptr get_static_exception_object() { Exception ba; exception_detail::clone_impl&lt;Exception&gt; c(ba); c &lt;&lt; throw_function(BOOST_CURRENT_FUNCTION) &lt;&lt; throw_file(__FILE__) &lt;&lt; throw_line(__LINE__); exception_ptr ep(shared_ptr&lt;exception_detail::clone_base const&gt;(new exception_detail::clone_impl&lt;Exception&gt;(c))); return ep; } </code></pre> <p>Note how this function is used, it assigns returned static variable to another static variable. The whole implementation of this function looks suspicious, probably I will raise a question on boost support about this.</p> <p>There are could be other workarounds to fix this issue. More analysis on static variables in mixed assemblies might be found here: <a href="http://derevyanko.blogspot.com/2009/01/clic.html" rel="noreferrer">http://derevyanko.blogspot.com/2009/01/clic.html</a> however only in russian.</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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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