Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Looks to me like this <a href="https://connect.microsoft.com/VisualStudio/feedback/details/482753/default-value-not-honoured-in-template-function-parameter" rel="nofollow noreferrer">bug in VC++</a> regarding default values in template functions. </p> <p>There's a very similar bug <a href="http://social.msdn.microsoft.com/Forums/en-US/vclanguage/thread/17497297-5fdc-437c-b50c-efee048dd8cb" rel="nofollow noreferrer">here</a> in August 2009 (closed as 'fixed' by M$ in their next release)... it's consistent in tons of ways: it's VC++ specific and works in GCC, results in intermittent failure with default template arguments (but never compile-time issues), and the problem only crops up on the second instantiation.</p> <p>That said, I can't explain the compiler output, or the magic 10 loops... :-)</p> <p>VC++ even has an old article on <a href="http://support.microsoft.com/kb/182046" rel="nofollow noreferrer">workarounds with templates</a>. with very similar bugs so recently, and how consistent your bug and Color_of_Green's bug seem, it's probably VC++ and not Boost.</p> <p>My guess? It's choking on these signatures: <code>const T &amp; data = T()</code> in graph_elements_collection.h. MSFT recommends changing that to <code>const T data = T()</code>. To verify that it's related to this compiler bug, try that, or the workarounds posted by MSFT... <a href="http://social.msdn.microsoft.com/Forums/en-US/vclanguage/thread/17497297-5fdc-437c-b50c-efee048dd8cb" rel="nofollow noreferrer">here</a>...</p>
    singulars
    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. 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