• Ronny Krüger's avatar
    Fixed a Visual Studio 2017 build error. (#4488) · 7d6d5f91
    Ronny Krüger authored
    The current 15.6.x versions of Visual Studio 2017 contain a bug that
    prevent them from compiling the following construct under certain
    conditions:
    
    std::unique_ptr<std::unique_ptr<Foo> []> foos;
    
    This will fail to compile if Foo is an abstract class. To work-around
    the problem the whole construct was change into:
    
    std::vector<std::unique_ptr<Foo>> foos;
    
    This not only fixes the compiler error but is also more readable than
    previous version.
    7d6d5f91
cpp_field.h 9.27 KB