Click here to Skip to main content
15,917,059 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: 21,273     Bookmarked: 25   Downloaded: 203
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: 65   Popularity: 8.86
Licence: CPOL    Views: 101,107     Bookmarked: 103   Downloaded: 4,438
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: 128,280     Bookmarked: 89   Downloaded: 692
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: 39,953     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: 30,103     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: 37,866     Bookmarked: 56   Downloaded: 378
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: 42,736     Bookmarked: 41   Downloaded: 370
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: 14,173     Bookmarked: 12   Downloaded: 196
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: 11,532     Bookmarked: 12   Downloaded: 54
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: 4,673     Bookmarked: 3   Downloaded: 69
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: 45,915     Bookmarked: 18   Downloaded: 926
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: 9,241     Bookmarked: 7   Downloaded: 88
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: 76,674     Bookmarked: 43   Downloaded: 601
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.
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.