title: cannot pass objects of non-trivially-copyable type ‘const class mysqlpp::String’
body: <p>I need to retrieve an INT from a database (MariaDB) and put it in a list made with GTK3.</p>
  
  <p>When I try to pass the variable from MariaDB to GTK3, the compiler throws the following error:</p>
  
  <p><code>cannot pass objects of non-trivially-copyable type ‘const class mysqlpp::String’ through ‘...’</code>
  (This happens in the function <code>void item(string nombre)</code>, in the lines inside the brackets, in the for loop)</p>
  
  <p>So, I would thank to anyone who can tell me a way to fix this problem.
  Thank you for your answers.</p>
  
  <p>The code is the one following:</p>
  
  <pre><code>void item(string nombre)
  {
      Connection con;
      con.connect("", server, user, pass);
      con.select_db(db);
  
      string consulta = nombre;
  
      Query pedido = con.query(consulta);
      StoreQueryResult resp = pedido.store();
  
      Row fila;
      for (i=0; i&lt;resp.num_rows(); i++)
  /*THE PROBLEM IS HERE*/    
          {
          gtk_list_store_append(GTK_LIST_STORE(list_store), &amp;list_iterator);
          gtk_list_store_set(GTK_LIST_STORE(list_store), &amp;list_iterator, 0, resp[i][1], 1, resp[i][2], 2, resp[i][1],-1);
          }
  
      con.disconnect();
  }
  </code></pre>