Click here to Skip to main content
15,508,758 members

Articles by john morrison leon (Articles: 13)

Articles: 13

RSS Feed

Average article rating: 4.76

Desktop Programming
MFC
18 Sep 2015   Updated: 18 Sep 2015   Rating: 4.77/5    Votes: 14   Popularity: 5.31
Licence: CPOL    Views: 17,661     Bookmarked: 25   Downloaded: 194
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.
WTL
29 May 2015   Updated: 3 Jun 2015   Rating: 4.96/5    Votes: 64   Popularity: 8.82
Licence: CPOL    Views: 80,978     Bookmarked: 101   Downloaded: 4,072
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: 114,553     Bookmarked: 88   Downloaded: 677
Please Sign up or sign in to vote.
A smart pointer system for safe application development in C++.
Programming Languages
C++
18 Nov 2012   Updated: 18 Nov 2012   Rating: 3.50/5    Votes: 8   Popularity: 3.16
Licence: CPOL    Views: 33,421     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,851     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: 34,161     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: 38,173     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: 10,330     Bookmarked: 9   Downloaded: 166
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: 5,530     Bookmarked: 11   Downloaded: 50
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,371     Bookmarked: 3   Downloaded: 64
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.
C++11
24 May 2017   Updated: 24 May 2017   Rating: 4.95/5    Votes: 22   Popularity: 6.64
Licence: CPOL    Views: 36,368     Bookmarked: 18   Downloaded: 840
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,281     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
VC++
12 Sep 2014   Updated: 8 Dec 2014   Rating: 4.95/5    Votes: 26   Popularity: 7.01
Licence: CPOL    Views: 66,117     Bookmarked: 43   Downloaded: 588
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.
Retired
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.