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

The reference got cluttered after I changed the private members to
protected.
This commit is contained in:
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()