Click here to Skip to main content
15,394,939 members

Articles by john morrison leon (Articles: 13)

Articles: 13

RSS Feed

Average article rating: 4.76

Desktop Programming
18 Sep 2015   Updated: 18 Sep 2015   Rating: 4.77/5    Votes: 14   Popularity: 5.31
Licence: CPOL    Views: 16,991     Bookmarked: 25   Downloaded: 193
Please Sign up or sign in to vote.
observer_ptr, a smart observer guaranteed to always be either valid or test as null. Transparently harnessing unique_ptr's custom deleter feature to detect object destruction.
29 May 2015   Updated: 3 Jun 2015   Rating: 4.96/5    Votes: 64   Popularity: 8.82
Licence: CPOL    Views: 77,758     Bookmarked: 100   Downloaded: 3,992
Please Sign up or sign in to vote.
An alternative approach in which dialogs are entirely specified as C++ code that requires neither IDE support to be written nor IDE generated resources to be executed. Powered by the C++ type system.
14 May 2008   Updated: 14 Apr 2014   Rating: 4.96/5    Votes: 46   Popularity: 8.11
Licence: CPOL    Views: 113,143     Bookmarked: 88   Downloaded: 677
Please Sign up or sign in to vote.
A smart pointer system for safe application development in C++.
Programming Languages
18 Nov 2012   Updated: 18 Nov 2012   Rating: 3.50/5    Votes: 8   Popularity: 3.16
Licence: CPOL    Views: 32,521     Bookmarked: 13   Downloaded: 0
Please Sign up or sign in to vote.
A brief excursion into practical contexts in which C++ references can be used effectively with discussion of the dangers in using them.
30 Apr 2014   Updated: 5 May 2014   Rating: 4.68/5    Votes: 18   Popularity: 5.87
Licence: CPOL    Views: 25,141     Bookmarked: 30   Downloaded: 0
Please Sign up or sign in to vote.
Some clear criteria for choosing when to use C++ references and how to know when they are safe.
13 Nov 2012   Updated: 14 Apr 2014   Rating: 4.82/5    Votes: 12   Popularity: 5.20
Licence: CPOL    Views: 33,421     Bookmarked: 56   Downloaded: 375
Please Sign up or sign in to vote.
The missing link for complete memory and pointer safety in C++
25 Mar 2014   Updated: 30 Apr 2014   Rating: 4.68/5    Votes: 10   Popularity: 4.47
Licence: CPOL    Views: 37,413     Bookmarked: 39   Downloaded: 366
Please Sign up or sign in to vote.
Introducing smart observers of single owners and the concept of Public and Private scope visibility
21 Nov 2021   Updated: 15 Dec 2021   Rating: 5.00/5    Votes: 8   Popularity: 4.52
Licence: CPOL    Views: 9,430     Bookmarked: 9   Downloaded: 162
Please Sign up or sign in to vote.
A smart pointer to an object already owned by a unique_ptr. It doesn't own the object but it self zeroes when the object is deleted so that it can never dangle.
18 Apr 2022   Updated: 18 Apr 2022   Rating: 4.83/5    Votes: 11   Popularity: 4.61
Licence: CPOL    Views: 4,270     Bookmarked: 11   Downloaded: 45
Please Sign up or sign in to vote.
Smart numeric conversion casts that resolve the issue of should I write (int) or a static_cast by being a better choice than both
6 May 2022   Updated: 6 May 2022   Rating: 5.00/5    Votes: 7   Popularity: 4.23
Licence: CPOL    Views: 3,051     Bookmarked: 3   Downloaded: 57
Please Sign up or sign in to vote.
A more descriptive and tightly scoped cast for numeric conversions. Includes rounding options, overflow checks, a high resilience to coding errors and some special syntactical conveniences.
24 May 2017   Updated: 24 May 2017   Rating: 4.95/5    Votes: 22   Popularity: 6.64
Licence: CPOL    Views: 33,748     Bookmarked: 18   Downloaded: 823
Please Sign up or sign in to vote.
Type quantities according to the units in which they are measured. A complete implementation of units of measurement as a data type for C++ 11.
4 Jan 2018   Updated: 4 Jan 2018   Rating: 4.78/5    Votes: 9   Popularity: 4.56
Licence: CPOL    Views: 8,121     Bookmarked: 7   Downloaded: 87
Please Sign up or sign in to vote.
Class method emulation for plain arrays plus unified handling of plain arrays, std::arrays and std::vectors
12 Sep 2014   Updated: 8 Dec 2014   Rating: 4.95/5    Votes: 26   Popularity: 7.01
Licence: CPOL    Views: 64,457     Bookmarked: 43   Downloaded: 585
Please Sign up or sign in to vote.
A lightweight library allowing diverse unit types, seamless implicit scaling between them and the ability to work efficiently with multiple factor-less base unit systems (e.g. MKS and cgs).

Average blogs rating:

No blogs have been submitted.

Average tips rating:

No tips have been posted.

Average reference rating:

No reference articles have been posted.

Average project rating:

No projects have been posted.
john morrison leon
Spain Spain
Software Author with engineering, science and mathematical background.

Many years using C++ to develop responsive visualisations of fine grained dynamic information largely in the fields of public transport and supply logistics. Currently interested in what can be done to make the use of C++ cleaner, safer, and more comfortable.