Skip to content

Commit

Permalink
Make converters friend class of class being converted
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucio Trincheri committed Dec 17, 2024
1 parent efb155c commit eac64ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sbg/dto/multidim_inter_dto.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ namespace SBG {

namespace API {

class MultiDimInterDTOConverter;

using MD_NAT = Util::MD_NAT;
using NAT = Util::NAT;

Expand Down
3 changes: 3 additions & 0 deletions sbg/dto/pw_mdinter_dto.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ namespace SBG {

namespace API {

class PWMDInterDTOConverter;

// Container -------------------------------------------------------------------

typedef std::vector<SetPieceDTO> SetPieceDTOVector;
Expand Down Expand Up @@ -63,6 +65,7 @@ struct PWMDInterDTO {
bool isEmpty() const;

friend std::ostream &operator<<(std::ostream &out, const PWMDInterDTO &i);
friend class PWMDInterDTOConverter;
};

typedef PWMDInterDTO SetDTO;
Expand Down

0 comments on commit eac64ec

Please sign in to comment.