10 Jan
2019
10 Jan
'19
11:15 p.m.
On 11/01/2019 07:36, Michael Powell wrote:
Here's my attempt at a flattened single source example:
The problems in that code are that you're using completely the wrong types. In key_t, you're inheriting the base_type copy-constructor and copy-assignment, and then creating new shadowing constructors and assignment operators for the base_type (note: these are *not* a copy-constructor nor copy-assignment operator for key_t itself!). In numeric_t(const sign_type& other), you're getting compile errors because you probably intended to use numeric_t instead of sign_type as the parameter.