You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by GitBox <gi...@apache.org> on 2022/06/26 02:58:39 UTC

[GitHub] [incubator-kvrocks] jackwener commented on pull request #672: enhance: use unique_ptr in Config

jackwener commented on PR #672:
URL: https://github.com/apache/incubator-kvrocks/pull/672#issuecomment-1166405320

   > ```c++
   > template<typename T, typename ...Args> auto UniqueConfig(Args &&... args) {
   >   return std::unique_ptr<ConfigField>(new T(std::forward<Args>(args)...));
   > }
   > ```
   > 
   > You can add this utility function to smplify the changes : )
   
   Looks like use another constructor is clearest.


-- 
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: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org