MCPcopy Create free account
hub / github.com/boostorg/leaf / BigInt

Class BigInt

example/print_half.cpp:38–44  ·  view source on GitHub ↗

Do not static_store BigInt to actually work -- it's a stub.

Source from the content-addressed store, hash-verified

36
37// Do not static_store BigInt to actually work -- it's a stub.
38struct BigInt
39{
40 static leaf::result<BigInt> fromString(const std::string& s) { return BigInt{s}; }
41 explicit BigInt(const std::string&) { }
42 BigInt half() const { return BigInt{""}; }
43 friend std::ostream& operator<<(std::ostream& o, const BigInt&) { return o << "big int half"; }
44};
45
46// This function handles ConversionErrc::TooLong errors, forwards any other
47// error to the caller.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected