Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13115782
D1723.id4784.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
550 B
Subscribers
None
D1723.id4784.diff
View Options
diff --git a/src/amount.h b/src/amount.h
--- a/src/amount.h
+++ b/src/amount.h
@@ -18,13 +18,9 @@
private:
int64_t amount;
-public:
- template <typename T>
- explicit constexpr Amount(T _camount) : amount(_camount) {
- static_assert(std::is_integral<T>(),
- "Only integer types can be used as amounts");
- }
+ explicit constexpr Amount(int64_t _amount) : amount(_amount) {}
+public:
constexpr Amount() : amount(0) {}
constexpr Amount(const Amount &_camount) : amount(_camount.amount) {}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 1, 12:04 (3 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5187762
Default Alt Text
D1723.id4784.diff (550 B)
Attached To
D1723: Make the constructor taking satoshi as parameter from the Amount class private
Event Timeline
Log In to Comment