diff --git a/cpp/include/cudf/io/datasource.hpp b/cpp/include/cudf/io/datasource.hpp index dfd35bc1a1b..0bc71ff8505 100644 --- a/cpp/include/cudf/io/datasource.hpp +++ b/cpp/include/cudf/io/datasource.hpp @@ -69,23 +69,17 @@ class datasource { */ virtual ~buffer() {} - /** - * @brief Disallow callers to pass an lvalue Container. - */ - template - static std::unique_ptr create(Container&) = delete; - /** * @brief Factory to construct a datasource buffer object from a container. * * @tparam Container Type of the container to construct the buffer from - * @param moved_data_owner The container to construct the buffer from (ownership is transferred) + * @param data_owner The container to construct the buffer from (ownership is transferred) * @return Constructed buffer object */ template - static std::unique_ptr create(Container&& moved_data_owner) + static std::unique_ptr create(Container&& data_owner) { - return std::make_unique>(std::forward(moved_data_owner)); + return std::make_unique>(std::forward(data_owner)); } };