diff --git a/cpp/evalio/types.h b/cpp/evalio/types.h index 4f3524f..d8def3d 100644 --- a/cpp/evalio/types.h +++ b/cpp/evalio/types.h @@ -104,7 +104,9 @@ struct Stamp { // extract & pad nsec std::string nsec_str = sec_str.substr(dot_pos + 1); if (nsec_str.size() > 9) { - throw std::runtime_error("Too many digits in fractional part of sec."); + // If too many digits, that represents a fraction of a nanosecond + // so we just truncate to 9 digits + nsec_str = nsec_str.substr(0, 9); } else if (nsec_str.size() < 9) { nsec_str += std::string(9 - nsec_str.size(), '0'); } diff --git a/cpp/setup_pipelines.sh b/cpp/setup_pipelines.sh index 6ce118f..d051f13 100755 --- a/cpp/setup_pipelines.sh +++ b/cpp/setup_pipelines.sh @@ -87,6 +87,6 @@ if [ ! -d ".vcpkg/" ]; then git clone https://github.com/microsoft/vcpkg.git .vcpkg/ fi cd .vcpkg -git switch --detach 2025.08.27 +git switch --detach 2026.07.29 cd .. ./.vcpkg/bootstrap-vcpkg.sh