Skip to content

Commit

Permalink
HttpForm needs another friend class for GCC6.
Browse files Browse the repository at this point in the history
  • Loading branch information
korli committed Jul 30, 2015
1 parent 82a6fd6 commit b4665f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions headers/os/net/HttpForm.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ class BHttpFormData {
// but never used (see BHttpForm::operator[] which does the necessary
// check up)
BHttpFormData();
#if __GNUC__ >= 6
friend class std::pair<const BString, BHttpFormData>;
#else
friend class std::map<BString, BHttpFormData>;
#endif

public:
BHttpFormData(const BString& name,
Expand Down

0 comments on commit b4665f9

Please sign in to comment.