alandtse / CommonLibF4

A reverse-engineered resource for Fallout 4
MIT License
6 stars 4 forks source link

Remove most uses of boost #10

Closed qudix closed 1 year ago

qudix commented 1 year ago

I removed most uses of boost's iterator_interface. This needs testing. I haven't touched BSTArray yet as that's the most complicated one and I'm unsure how to go about it.

alandtse commented 1 year ago

Perhaps check with SSE and how it was removed out from there?

qudix commented 1 year ago

The SSE version never had boost added to it. I don't understand enough about BSTArray to make the proper changes to it. I might just leave it for someone else to tackle.

alandtse commented 1 year ago

This isn't something that code review will really help with. Did you do some basic testing that the containers seem to work?

qudix commented 1 year ago

Not extensively, most of these containers don't have constructors defined so I can't make automatic tests for them. Besides BSTHashMap which passes all it's tests, the only way to test the rest of them is to grab an already constructed one from the game and iterate over its data. This involves making a plugin.

alandtse commented 1 year ago

If you've done some basic testing, I'd be ok with merging. My concern is if this was completely blind since it's not a fix or feature but more some refactoring. That would mean holding it out until some testing could be run since it's a potentially significant change.

That said, given some testing I'll merge it in.

qudix commented 1 year ago

I'll do that once I have some free time.

qudix commented 1 year ago

Ok, I tested some more using data from the game where available and all of the iteration scenarios I know of still work. I can't verify everything else as I can't come up with more advanced examples, and the lack of constructors limits things.