out-of-box std::pair support
Brought to you by:
mbaas,
roman_yakovenko
following class containing variable of type std::pair<int, int> (std::pair<T> in general) should be exposed without any warnings (just like other STL containers):
#include <utility>
class I
{
public:
I(int a, int b)
{
pair_.first = a;
pair_.second = b;
}
std::pair<int, int> pair_;
int compute(){return pair_.first + pair_.second;}
};