If a const integer is passed to format then compilation fails.
#include <boost/url/format.hpp>
struct HostPort {
const std::string_view host{"a.host"};
//const unsigned short int port{80}; // does not compile
unsigned short int port{80}; // compiles
};
int main()
{
HostPort hp;
auto url = boost::urls::format("http://{}:{}", hp.host, hp.port);
}
If a const integer is passed to format then compilation fails.
Ref. https://godbolt.org/z/EdrY9cvnG
There seems to be some missing
std::remove_cv
somewhere.