• Kenton Varda's avatar
    Fix MSVC: Don't specialize constructor with EnableIf params. · 6141d71a
    Kenton Varda authored
    It appears that MSVC treats the specialization of this templated constructor as if it were an overload, causing the selection of constructor to be ambiguous. It only does this if the second template parameter (the EnableIf) if present; otherwise the specialization works correctly.
    
    As a work-around, I refactored the code to avoid specializing the constructor. Instead, we add a static method that encapsulates the differences, which the constructor calls.
    6141d71a
memory.h 17 KB