<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jan 5, 2017 at 6:13 AM, John Emmas <span dir="ltr"><<a href="mailto:johne53@tiscali.co.uk" target="_blank">johne53@tiscali.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Tim, MSVC is throwing up a minor problem...<br>
<br></blockquote><div><br></div><div>Hi John,</div><div><br></div><div>Sorry, for some reason your emails went into my spam folder.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I switched to your new branch and added the 2 new source files to libpbd (i.e. to my MSVC project).<br></blockquote><div><br></div><div>Thanks for trying to build the branch, it is useful to know if there are issues with other compilers.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
libpbd itself built okay - but when I try to build anything further up the chain (e.g. libardour) 'string_convert.h' gives me this error at lines 77, 152 and 239:-<br>
<br>
    error C2039: 'TO_STRING_TEMPLATE_NOT_DEFINE<wbr>D_FOR_THIS_TYPE' : is not a member of global namespace'<br>
<br>
(and likewise for line 336).  If I comment out those lines temporarily, everything then builds okay.  I haven't yet tried a Debug build (so I don't yet know if the DEBUG_SCONVERT stuff works) but in the meantime, I thought I'd flag this up to you.<br>
<br></blockquote><div><br></div><div>As is indicated in the comment, those lines of code exists to give a useful/obvious error message for types that don't have a template specialization defined. It should only be a compile time error if that template is instantiated.</div><div><br></div><div>It should be able to be safely ifdef'd without any issues as long as it works as intended on the other compilers, but can you try changing those lines to:</div><div><br></div><div>typename T::TO_STRING_TEMPLATE_NOT_DEFINED_FOR_THIS_TYPE invalid_type;</div><div><br></div><div>What compiler/version are you using?</div><div><br></div><div>Tim.</div></div><br></div></div>