For example, I have a markerdisplay.cpp file. The marker member function will look like this.
void MarkerDisplay::setMarkerStatus(MarkerID id, StatusLevel level, const std::string& text)
{
.....
}
Can I use the non-member function in markerdisplay.cpp?
For instance,
bool validateFloats(const visualization_msgs::Marker& msg)
{
...
}
The validateFloats function is not a member function, and I also do not declare it in the header file. I use this function only inside the validateFloats.cpp file.
Someone told me that this may cause some problems. It's true?
source
share