[ 
https://issues.apache.org/jira/browse/MINIFICPP-652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16666556#comment-16666556
 ] 

ASF GitHub Bot commented on MINIFICPP-652:
------------------------------------------

Github user phrocker commented on a diff in the pull request:

    https://github.com/apache/nifi-minifi-cpp/pull/428#discussion_r228764823
  
    --- Diff: libminifi/src/FlowController.cpp ---
    @@ -911,11 +911,18 @@ uint64_t FlowController::getUptime() {
     }
     
     std::vector<BackTrace> FlowController::getTraces() {
    -    std::vector<BackTrace> traces;
    +  std::vector<BackTrace> traces;
       auto timer_driven = timer_scheduler_->getTraces();
       traces.insert(traces.end(), 
std::make_move_iterator(timer_driven.begin()), 
std::make_move_iterator(timer_driven.end()));
       auto event_driven = event_scheduler_->getTraces();
       traces.insert(traces.end(), 
std::make_move_iterator(event_driven.begin()), 
std::make_move_iterator(event_driven.end()));
    --- End diff --
    
    I think both work. I've always preferred the way I do it because of the 
explicit naming of the move iterator -- it has resulted in less confusion with 
newer developers, but again I recognize everyone has a different style, so I 
won't attempt to push any style onto you. I even double checked after you 
comment -- assembly output is identical, so I'm not sure I have a real 
preference as I'm more 'function over style'


> Add monitored threads to stacks protocol
> ----------------------------------------
>
>                 Key: MINIFICPP-652
>                 URL: https://issues.apache.org/jira/browse/MINIFICPP-652
>             Project: NiFi MiNiFi C++
>          Issue Type: Improvement
>            Reporter: Mr TheSegfault
>            Assignee: Mr TheSegfault
>            Priority: Major
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to