Use friend class instead of protected members.
the build was successful 详情

The reference got cluttered after I changed the private members to
protected.
这个提交包含在:
tastytea 2019-01-04 20:07:11 +01:00
父节点 455eba820b
当前提交 8bb322edb9
签署人:: tastytea
GPG 密钥 ID: CFC39497F1B26E07
共有 3 个文件被更改,包括 4 次插入3 次删除

查看文件

@ -42,6 +42,7 @@ using std::array;
class Identiconpp
{
public:
friend class Testiconpp;
/*!
* @brief List of identicon algorithms
*/
@ -89,7 +90,7 @@ public:
*/
Magick::Image generate(const string &digest, const uint16_t width = 100);
protected:
private:
const uint8_t _rows;
const uint8_t _columns;
const algorithm _type;

查看文件

@ -6,7 +6,7 @@
using std::string;
class Testiconpp : protected Identiconpp
class Testiconpp : private Identiconpp
{
public:
explicit Testiconpp(const uint8_t columns, const uint8_t rows,

查看文件

@ -6,7 +6,7 @@
using std::string;
class Testiconpp : protected Identiconpp
class Testiconpp : private Identiconpp
{
public:
explicit Testiconpp()