JoeyAndres / rl

Reinforcement Learning library
2 stars 0 forks source link

Use std:shared_ptr instead of reference. #19

Closed JoeyAndres closed 8 years ago

JoeyAndres commented 8 years ago

Using shared_ptr is easier. Less to think, e.g. will this thing still be in memory? Will the address change if this thing is stored in array? etc.