aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/utility.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-02-12 05:44:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2024-02-12 05:44:51 +0200
commit7bbe8042dbbea81c713576e1ce69d00bbba5d4b6 (patch)
tree2e0fe544517e6251b18c0c5ba6f57dd74c3a19aa /libbuild2/utility.hxx
parent0249399f06ab77c58e02698a6a0b2352f0dbf1ae (diff)
Move to_string(uint64_t,base,width) to utility, use everywhere
Diffstat (limited to 'libbuild2/utility.hxx')
-rw-r--r--libbuild2/utility.hxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/libbuild2/utility.hxx b/libbuild2/utility.hxx
index 594808c..b534f41 100644
--- a/libbuild2/utility.hxx
+++ b/libbuild2/utility.hxx
@@ -52,10 +52,16 @@ namespace build2
using std::make_shared;
using std::make_move_iterator;
using std::back_inserter;
- using std::to_string;
using std::stoul;
using std::stoull;
+ using std::to_string;
+
+ // Currently only supports base 10 and 16. Note: adds `0x` if base 16.
+ //
+ LIBBUILD2_SYMEXPORT string
+ to_string (uint64_t, int base, size_t width = 0);
+
// <libbutl/utility.hxx>
//
using butl::reverse_iterate;