Question: I'd like to know if there's any way to *see* (and **not access neither modify**) a private member from outside its class ?

```
template <typename type_>
class OBJ1
{
  //methods
};

class OBJ2
{
  private:
    OBJ1<int> my_obj;
};

class OBJ3
{
  public:
    template <typename type_>
    void magic_method(OBJ1<type_> obj)
    {
      //with another intermediate class, call one of OBJ1's public methods
      //anotherClass::call(obj);
    }
};

```

Obviously this does not work, as G++ does not know what is `my_obj` within `class OBJ3`. Is there a way to make this code compile ? Like forward declaration or something ? And again, other classes just need to know that "OBJ1 declared objects" exist.

Thanks !

Answer: 
Fixed it using the :reconnect flag to Mysql2::Client.new as shown at <https://github.com/brianmario/mysql2#connection-options>. reconnect method is not required and doesnt exist.
try this, write in your gem file

```
gem 'mysql2'

```

then, bundle install.