Skip to content
Commit 338597fe authored by Alberto Miranda's avatar Alberto Miranda
Browse files

Add utils::static_unique_ptr_cast()

Also, replace all static_cast<T*>(base.get()) constructs by
utils::static_unique_ptr_cast<T>(std::move(base)).
For example:
    auto request =
        static_cast<api::iotask_create_request*>(base_request.get());
becomes:
    auto request =
        utils::static_unique_ptr_cast<api::iotask_create_request>(
            std::move(base_request));
parent 368ce5dd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment