Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Constants should be policy-based

Open
#36 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
performance

Research direction

Start with boost/sort/spreadsort/detail/constants.hpp, then trace how spreadsort consumes those constants. Determine the template entry points that would need a policy parameter. Done means callers can customize the tuning values per invocation without modifying installed Boost headers; no tests or specific entry points are named in the issue.

Written by the indexing model from the issue text.

Description

Right now, boost/sort/spreadsort/detail/constants.hpp defines a bunch of performance-tuning constants for spreadsort. Why make these constants global? Because these constants live in a simple enum, they're impossible to change without changing the Boost headers, which is awkward when compiling against a Boost installed system-wide.

Instead, spreadsort should accept a struct containing these constants as a template argument. This way, users would be able to customize these parameters for specific invocations of spreadsort without changing the Boost headers themselves.

Dominant language
C++
Stars
58
Forks
47
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/sort

All issues in boostorg/sort

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.