vendredi 29 mai 2015

'array' in namespace 'std' does not name a template type

I receive the following error:

'array' in namespace 'std' does not name a template type.

I changed my compiler to g++ 4.9. Still having issues. I think that I may have an old version of the std library but am not sure on how to proceed to fix that.

#ifndef DBINTERFACE_H_
#define DBINTERFACE_H_

#include "mysql_connection.h"
#include <cppconn/driver.h>
#include <cppconn/exception.h>
#include <cppconn/resultset.h>
#include <cppconn/statement.h>
#include "mysql_driver.h"
#include <array>

class DBInterface {
private:
    double Found_Buffer[100][59];
    int Found_Count;
    double New_Buffer[100][59];
    std::array<double, 5> BLAH;

    int New_Count;
    double M[59];
    double B[59];
    sql::mysql::MySQL_Driver *driver;
    sql::Connection *con;

public:
    DBInterface();
    virtual ~DBInterface();
    void Update();
    void Search();
    void Add2DB();
    void Add2Buffer(double Found_Objects[][59], double New_Objects[][59]);
    void Build();

    /*
     * To be added:
     * void CollapseBuffer();
     * void DetDynamic();
     *
     */
};

#endif /* DBINTERFACE_H_ */

Aucun commentaire:

Enregistrer un commentaire