Closed drinkingkazu closed 6 years ago
@gustavogx ok I fixed in this commit and also the next one.
One more thing to note: when accessing data product as a pointer, there is no need to be careful (well, except it's a pointer ;)). But when accessing it as an object reference, we have to explicitly specify "&" to avoid slow copy. Just a remark.
@gustavogx thanks for helping today! I just pulled and got a linking error after this commit A few notes: 0) to see the full compilation test, type "make" @ repo top dir, not in larcv/app/ImageMod (or any subdirectories under top). Linking error won't show up otherwise (since linking is done to combine all packages = subdirectories) 1) I noticed the issue is IOManager::get_data where T was specialized to be a pointer. If you look at this function definition here, you see this function returns a reference. So it's not meant to return a pointer :)
I'm gonna fix this and push soon.