Struct

oop uses pass by reference, but stuffs the struct with functions instead of having it in separate header file as per git repo. Below is a platformio program showing pass by reference but not embedding the function inside the struct.

structest.cpp main file

Mytpes.cpp

Mytypes.h

links
oop