[Olena] #177: Provide safe value types to represent sizes

#177: Provide safe value types to represent sizes ---------------------------------------+------------------------------------ Reporter: levill_r | Owner: Olena Team Type: proposal | Status: new Priority: major | Milestone: Olena 1.0 Component: Milena | Version: 1.0 Keywords: conversion cast promotion | ---------------------------------------+------------------------------------ For instance we currently use either `unsigned` (bad) or `std::size_t` (less bad) to represent a size (or a cardinal), but none of them is really safe: as Théo and Matthieu recently said, adding an `int` with an `unsigned` can lead to unexpected results. We should provide safe replacement type(s) (or merely typedef(s) over existing safe types), and stop using unsafe C++ built-in types. -- Ticket URL: <https://trac.lrde.org/olena/ticket/177> Olena <http://olena.lrde.epita.fr> Olena, a generic and efficient C++ image processing library.

#177: Provide safe value types to represent sizes -----------------------+---------------------------------------------------- Reporter: levill_r | Owner: Olena Team Type: proposal | Status: new Priority: major | Milestone: Olena 1.1 Component: Milena | Version: 1.0 Resolution: | Keywords: conversion cast promotion -----------------------+---------------------------------------------------- Changes (by levill_r): * milestone: Olena 1.0 => Olena 1.1 Comment: Not a hard requirement for [milestone:"Olena 1.0" Olena 1.0]; postponing. -- Ticket URL: <https://trac.lrde.org/olena/ticket/177#comment:1> Olena <http://olena.lrde.epita.fr> Olena, a generic and efficient C++ image processing library.
participants (2)
-
Olena
-
Olena Trac