General: Deprecate misleading/obsolete cmake options by stotko · Pull Request #103 · stotko/stdgpu (original) (raw)
Some library options merely expose implementation details and, hence, may not provide any value to users or even lead to confusion:
STDGPU_ENABLE_AUXILIARY_ARRAY_WARNINGandSTDGPU_ENABLE_MANAGED_ARRAY_WARNINGboth just print a warning if a certain code path to extend support to host-only (.cpp) files is chosen.STDGPU_USE_FAST_DESTROYdisables proper safe destruction of arrays by skipping the destructor calls which lead to unexpected behavior if the destructor is not trivial.STDGPU_USE_FIBONACCI_HASHINGexposes an implementation detail regarding the mapping from hashes to buckets inunordered_mapandunordered_set.
Deprecate these options to encourage users to stick with the current, safe default values.