Fix #549, plus more usual syntax for #548

This commit is contained in:
vsonnier
2017-05-27 07:46:28 +02:00
parent fcf9f0bb82
commit d170f731c5
2 changed files with 8 additions and 2 deletions
+7 -1
View File
@@ -133,6 +133,7 @@ protected:
template<typename OutputDataType>
class VisualDataDistributor : public VisualProcessor<OutputDataType, OutputDataType> {
protected:
virtual void process() {
VisualProcessor<OutputDataType, OutputDataType>::OutputDataTypePtr inp;
@@ -157,9 +158,14 @@ protected:
//A COPY to every outputs, without further processing. This is a 1-to-n dispatcher.
template<typename OutputDataType>
class VisualDataReDistributor : public VisualProcessor<OutputDataType, OutputDataType> {
protected:
ReBuffer<OutputDataType> buffers{ std::string(typeid(*this).name()) };
VisualDataReDistributor() : buffers (std::string(typeid(*this).name())) {
}
ReBuffer<OutputDataType> buffers;
virtual void process() {
VisualProcessor<OutputDataType, OutputDataType>::OutputDataTypePtr inp;