No, it can't. std::to_string isn't constexpr. And even if it was, it still wouldn't work because the std::string needs to be destroyed inside the constexpr context.
The article is also wrong because std::to_chars isn't constexpr so you can't use that.
The article is also wrong because std::to_chars isn't constexpr so you can't use that.