lidavidm commented on code in PR #1998:
URL: https://github.com/apache/arrow-adbc/pull/1998#discussion_r1671421570
##########
c/driver/postgresql/copy/writer.h:
##########
@@ -92,13 +92,20 @@ class PostgresCopyFieldWriter {
public:
virtual ~PostgresCopyFieldWriter() {}
- void Init(struct ArrowArrayView* array_view) { array_view_ = array_view; };
+ template <class T, typename... Params>
+ static std::unique_ptr<T> Create(struct ArrowArrayView* array_view,
Params&&... args) {
Review Comment:
Ah...
This is fine then. The `T::Create<T>` bugged me a little bit but it's not
actually a problem.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]