HttpForm needs another friend class for GCC6.

This commit is contained in:
Jérôme Duval 2015-07-30 22:07:25 +02:00
parent 82a6fd69f7
commit b4665f9a59

View File

@ -32,7 +32,11 @@ private:
// 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,