[Cs3] shared pointer arithmetic

Mikhail Nesterenko mikhail at cs.kent.edu
Tue Nov 26 15:30:00 EST 2019


CS3 students,

Pointer aritmetic, increment, decrement and relational operators
cannot be applied to shared_ptr. Smart pointers are about ownership
and pointer arithmetic is intenionally not implemented.

Thanks,
-- 
Mikhail


More information about the cs3 mailing list