"tests/test_smart_ptr.cpp" did not exist on "b1b714023a5ece9436c135a11c19837804d9f099"
  • Jason Rhinelander's avatar
    Combine std::tuple/std::pair logic · 897d7168
    Jason Rhinelander authored
    The std::pair caster can be written as a special case of the std::tuple
    caster; this combines them via a base `tuple_caster` class (which is
    essentially identical to the previous std::tuple caster).
    
    This also removes the special empty tuple base case: returning an empty
    tuple is relatively rare, and the base case still works perfectly well
    even when the tuple types is an empty list.
    897d7168
test_builtin_casters.cpp 7.22 KB