• Praveen Kumar's avatar
    Needless temporary gone · af7afa42
    Praveen Kumar authored
    Summary: We might be doing:
    1) Create a temporary
    2) Copy/Move out of it
    3) Destroy that temporary.
    Which isn't needed in many places.
    And copy/move elision doesn't work for a temporary
    bound to a reference.
    
    We can forward arguments, directly.
    To get the work done three constructors were added.
    
    Closes #222
    
    Reviewed By: @JoelMarcey, @yfeldblum
    
    Differential Revision: D2151731
    
    Pulled By: @sgolemon
    af7afa42
DynamicTest.cpp 8.96 KB