diff options
| author | KunoiSayami <[email protected]> | 2023-07-12 02:20:05 +0800 |
|---|---|---|
| committer | KunoiSayami <[email protected]> | 2023-07-12 02:20:05 +0800 |
| commit | c5e9d07ba378fa6558e92c4a3ecc83f2ae8176b9 (patch) | |
| tree | dd3c4c5b83f7ce35586c02d5348c7a8408c0696d /expt_0707.cpp | |
| parent | c6f4418debfe1f045ef6b36dec5d0cf3a40fd281 (diff) | |
2023-07-12 02:20
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'expt_0707.cpp')
| -rw-r--r-- | expt_0707.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/expt_0707.cpp b/expt_0707.cpp index b3e51ff..fb327fd 100644 --- a/expt_0707.cpp +++ b/expt_0707.cpp @@ -23,8 +23,9 @@ PRINTF_BYTE_TO_BINARY_INT32((i) >> 32), PRINTF_BYTE_TO_BINARY_INT32(i) /* --- end macros --- */ -template <typename T> void print_type_max(T _) { - std::cout << typeid(T).name() << "" +template <typename T> void print_type_max(T) { + std::cout << typeid(T).name() << "" << std::numeric_limits<size_t>::max() + << std::endl; } int main() { @@ -36,5 +37,6 @@ int main() { "= " PRINTF_BINARY_PATTERN_INT64 "\n", last_known_point, val, PRINTF_BYTE_TO_BINARY_INT64(last_known_point - val)); - std::cout << std::numeric_limits<size_t>::max() << std::endl; + + print_type_max((size_t)114514); }
\ No newline at end of file |
