guruofquality / gras

GRAS: The GNU Radio Advanced Scheduler
https://github.com/guruofquality/gras/wiki
Other
23 stars 11 forks source link

SBuffer needs a const version #75

Open guruofquality opened 11 years ago

guruofquality commented 11 years ago

This is the only way we can truly have const correctness with sbuffer. Otherwise, the intrusive pointer just scoots around and gives us the non-const pointer -- the wrong thing is const'd.

This would help with const correctness when getting direct access to SBuffer as an input.

The code will probably just be a typedef of

intrusive_ptr<const SBufferSomething>

I think...