Skip to content

Plan migration from boost::process v1 to v2Β #473

@AnarManafov

Description

@AnarManafov

Status: Compatibility Resolved βœ… | Migration Planning Phase πŸ“‹

DDS currently uses boost::process v1 API. With the introduction of Boost 1.89+, where v2 became the default, DDS now has conditional compilation support that maintains compatibility with both old and new Boost versions.

Background

Boost.Process v2 provides significant improvements:

  • Enhanced stability and ASIO integration
  • Better async I/O handling
  • Improved process lifecycle management
  • Modern C++ design patterns

The v1 API is currently deprecated but still maintained and supported in modern Boost versions for backward compatibility.

Current Implementation

As of August 2025, DDS has implemented conditional compilation that:

  • Uses boost/process/v1.hpp when available (Boost 1.85+)
  • Falls back to original API for older Boost versions (1.75+)
  • Provides seamless compatibility across Boost versions

Migration Goal

Evaluate and plan migration to boost::process v2 to:

  • Take advantage of stability improvements
  • Potentially resolve edge cases in child process handling
  • Align with modern Boost library design
  • Ensure long-term maintainability

Priority

Medium Priority - No immediate urgency as v1 API remains supported and stable. Migration should be planned and evaluated thoroughly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions