mirror of
https://github.com/boostorg/charconv.git
synced 2026-01-19 16:12:14 +00:00
15 lines
358 B
C++
15 lines
358 B
C++
// Copyright 2022 Peter Dimov
|
|
// Distributed under the Boost Software License, Version 1.0.
|
|
// https://www.boost.org/LICENSE_1_0.txt
|
|
|
|
#include <boost/charconv.hpp>
|
|
|
|
int main()
|
|
{
|
|
char buffer[ 32 ];
|
|
auto r = boost::charconv::to_chars( buffer, buffer + sizeof( buffer ), 1048576 );
|
|
|
|
int v = 0;
|
|
boost::charconv::from_chars( buffer, r.ptr, v );
|
|
}
|