Skip to content

Commit

Permalink
Update rs2_type_traits.h
Browse files Browse the repository at this point in the history
  • Loading branch information
dorodnic committed Aug 27, 2018
1 parent 30f96a3 commit b55069d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wrappers/matlab/rs2_type_traits.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,11 @@ MatlabParamParser::type_traits<rs2::options>::carrier::~carrier() {
rs2::options MatlabParamParser::type_traits<rs2::options>::from_internal(rs2_internal_t * ptr) {
switch (ptr->type) {
case carrier::types::rs2_sensor: return traits_trampoline::from_internal<rs2::sensor>(ptr).as<rs2::options>();
case carrier::types::rs2_process_interface: return *std::shared_ptr<rs2::options>(*static_cast<type_traits<rs2::process_interface>::carrier_t*>(ptr->ptr));
// TODO: Fix
//case carrier::types::rs2_process_interface: return *std::shared_ptr<rs2::options>(*static_cast<type_traits<rs2::process_interface>::carrier_t*>(ptr->ptr));
case carrier::types::rs2_colorizer: return *std::shared_ptr<rs2::options>(*static_cast<type_traits<rs2::colorizer>::carrier_t*>(ptr->ptr));
case carrier::types::rs2_pointcloud: return *std::shared_ptr<rs2::options>(*static_cast<type_traits<rs2::pointcloud>::carrier_t*>(ptr->ptr));
default: mexErrMsgTxt("Error parsing argument of type rs2::options: unrecognized carrier type");
}

}
}

0 comments on commit b55069d

Please sign in to comment.