From 352d69ffbff5350452aab38b1774b1eeaeb8de4f Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 2 May 2022 00:26:59 +0200 Subject: Reduce fraction_timespec conversion ctor implicit example --- include/jau/fraction_type.hpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'include/jau') diff --git a/include/jau/fraction_type.hpp b/include/jau/fraction_type.hpp index a1560bc..e125671 100644 --- a/include/jau/fraction_type.hpp +++ b/include/jau/fraction_type.hpp @@ -849,11 +849,7 @@ namespace jau { * Example without overflow check and implicit fraction_i64 conversion to fraction_timespec: *
             fraction_i64 duration = 10_ms;
-            bool overflow = false;
             const fraction_timespec timeout_time = getMonotonicTime() + duration;
-            if( overflow ) {
-                return; // bail out
-            }
          * 
* * Example with overflow check for potential durations > 292 years and explicit fraction_i64 conversion to fraction_timespec: -- cgit v1.2.3