Skip to content

Fix C++17 deprecation warnings in ar.hpp#44

Merged
RhysU merged 1 commit intomasterfrom
claude/fix-ar-warnings-vCmwO
Jan 11, 2026
Merged

Fix C++17 deprecation warnings in ar.hpp#44
RhysU merged 1 commit intomasterfrom
claude/fix-ar-warnings-vCmwO

Conversation

@RhysU
Copy link
Copy Markdown
Owner

@RhysU RhysU commented Jan 11, 2026

Eliminate all deprecation warnings when building ar.so by replacing deprecated C++17 standard library features with modern alternatives:

  • Replace std::iterator base class with manual iterator trait definitions in predictor, empirical_variance_iterator, and null_output classes
  • Replace std::binary_function with manual typedef definitions in empirical_variance_function struct
  • Replace std::bind2nd with simple for loop (avoiding lambdas)
  • Remove obsolete base::operator=() call in predictor assignment

The build now completes with zero warnings while maintaining full backward compatibility and avoiding C++11 lambda expressions.

Eliminate all deprecation warnings when building ar.so by replacing
deprecated C++17 standard library features with modern alternatives:

- Replace std::iterator base class with manual iterator trait definitions
  in predictor, empirical_variance_iterator, and null_output classes
- Replace std::binary_function with manual typedef definitions in
  empirical_variance_function struct
- Replace std::bind2nd with simple for loop (avoiding lambdas)
- Remove obsolete base::operator=() call in predictor assignment

The build now completes with zero warnings while maintaining full
backward compatibility and avoiding C++11 lambda expressions.
@RhysU RhysU merged commit 554973e into master Jan 11, 2026
14 checks passed
@RhysU RhysU deleted the claude/fix-ar-warnings-vCmwO branch January 11, 2026 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants