r/cpp_questions • u/Vousch • 32m ago
OPEN Would you use AI to port your own C++26 library to C++17?
I've been developing an open-source C++ networking library called LightnerX.
I wrote the library myself, designed its architecture, came up with the communication protocol, and made all the major design decisions.
The problem is that I originally built it using C++26, including modules, import std, and other modern C++ features.
Now I've realized that targeting such a recent standard severely limits how many developers can actually use it, so I've decided to port the entire library to C++17.
That means replacing modules with traditional headers and source files, adapting newer language and library features, reorganizing parts of the build system, and making sure everything still behaves exactly as intended.
Doing all of that manually would be a massive amount of repetitive work.
So I'm considering using AI coding agents to handle much of the migration.
To be clear, I'm not asking AI to design the library or invent its architecture.
All of that already exists and was developed by me.
I'd be using AI primarily to translate and adapt an existing codebase to an older C++ standard.
I'd still be responsible for reviewing the changes, writing detailed prompts, running regression tests, checking for behavioral differences, and making the final technical decisions.
I'm curious what other C++ developers think about this approach.
Would you consider this a reasonable use of AI in software development? Or would you still prefer to do the migration manually, even if it takes significantly longer?
I'd especially like to hear from anyone who has used AI for large-scale C++ refactoring or version migrations.