container icon indicating copy to clipboard operation
container copied to clipboard

Compilation fails if custom key comparison is used

Open asclearuc opened this issue 1 year ago • 0 comments

The company I work for - wants to migrate to newer version of boost (1.78 -> 1.80+), and next change (https://github.com/boostorg/container/commit/ccf13f6770409f22812fd9839314c97653e11d84#diff-0034e7b487413a758657a08287f73eaab77da00e768e8db209ed389cc59ad7a0R1226-R1270) - breaks the compilation:

  • in previous version (1.78): all calls to find have KeyNodeCompare(key_comp()) as a parameter
  • in newer version (1.80+): all calls to find have KeyNodeCompare() as a parameter

The code has the custom collator, which must not have default constructor.

asclearuc avatar May 02 '24 15:05 asclearuc