From e683653f5a40cca015080b5ca9257eb1701e4ef9 Mon Sep 17 00:00:00 2001 From: skramm Date: Mon, 27 Jan 2025 22:29:04 +0100 Subject: [PATCH] typos --- docs/homog2d_devinfo.md | 2 +- homog2d.hpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/homog2d_devinfo.md b/docs/homog2d_devinfo.md index 870b391..d4936e6 100644 --- a/docs/homog2d_devinfo.md +++ b/docs/homog2d_devinfo.md @@ -83,7 +83,7 @@ The makefile then compiles it and runs it. ### 4.1 - Partial template implementation trick To be able to templatize all the code on the root numerical data type (float, double, ...), we implement some trick. -As the `LPBase` class is already templatized on the type (`type::IsPoint` or `type::IsLine`), +As the `LPBase` class is already templatized on the type (`typ::IsPoint` or `typ::IsLine`), it would require a partial template specialization to define the behavior of each member function (or free function), depending on the basic type (Line or Point), and still templatize on the numerical type. C++ does not allow this. diff --git a/homog2d.hpp b/homog2d.hpp index 0c153b0..393c39a 100644 --- a/homog2d.hpp +++ b/homog2d.hpp @@ -227,7 +227,7 @@ See https://github.com/skramm/homog2d #define HOMOG2D_MAXITER_PIP 5 #endif -#define HOMOG2D_VERSION "2.12.0" +#define HOMOG2D_VERSION "2.12.1" // some MS environments seem to lack Pi definition, even if _USE_MATH_DEFINES is defined #ifndef M_PI @@ -5946,7 +5946,7 @@ this should work !!! (but doesn't...) if( pt_front == pt_back ) // means it's closed isClosed = true; - if( isClosed && std::is_same::value ) // cannot build an open polyline from a closed one + if( isClosed && std::is_same_v ) // cannot build an open polyline from a closed one HOMOG2D_THROW_ERROR_1( "unable to convert a closed boost::polygon into an OPolyline" ); _plinevec.reserve( outer.size() - isClosed ); @@ -9288,7 +9288,7 @@ product( /// Implementation of product 3x3 by 3x1 /** -- T1 and T2: type::IsLine or type::IsPoint (same but also different) +- T1 and T2: typ::IsLine or typ::IsPoint (same but also different) */ template void