• Sebastian Gsänger's avatar
    test pair-copyability on C++17 upwards (#1886) · a83d69e7
    Sebastian Gsänger authored
    * test pair-copyability on C++17 upwards
    
    The stdlib falsely detects containers like M=std::map<T, U>
    as copyable, even when one of T and U is not copyable.
    Therefore we cannot rely on the stdlib dismissing std::pair<T, M>
    by itself, even on C++17.
    
    * fix is_copy_assignable
    
    bind_map used std::is_copy_assignable which suffers from the same problems
    as std::is_copy_constructible, therefore the same fix has been applied.
    
    * created tests for copyability
    a83d69e7
test_stl_binders.cpp 4.54 KB