You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@graphar.apache.org by "SYaoJun (via GitHub)" <gi...@apache.org> on 2026/02/07 13:08:21 UTC

[I] feat(C++): reduce copy for status.h [incubator-graphar]

SYaoJun opened a new issue, #842:
URL: https://github.com/apache/incubator-graphar/issues/842

   ### Describe the enhancement requested
   
   in incubator-graphar/cpp/src/graphar/status.h:157
   > inline static Status OK() { return Status(); }
                                                           
   this statement can return `{}` directly to avoid repeating the return type from the declaration
   
   in incubator-graphar/cpp/src/graphar/status.h:138
   
   > Status(StatusCode code, const std::string& msg) {
       state_ = new State;
       state_->code = code;
       state_->msg = msg;
     }
   
   for msg can pass a value and use std::move 
   
   
   ### Component(s)
   
   C++


-- 
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: commits-unsubscribe@graphar.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@graphar.apache.org
For additional commands, e-mail: commits-help@graphar.apache.org


Re: [I] feat(C++): reduce copy for status.h [incubator-graphar]

Posted by "SYaoJun (via GitHub)" <gi...@apache.org>.
SYaoJun closed issue #842: feat(C++): reduce copy for status.h
URL: https://github.com/apache/incubator-graphar/issues/842


-- 
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: commits-unsubscribe@graphar.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@graphar.apache.org
For additional commands, e-mail: commits-help@graphar.apache.org