尽管有分号,但缺少半结肠吗?

时间:2018-04-14 04:18:06

标签: c++ syntax compiler-errors compilation syntax-error

我正在尝试编译其他人的代码来分析它。通常情况下,他们的代码不能在我当前的设置上编译,所以我一直在调整一些小问题(只有将正斜杠更改为反斜杠或添加库目录以包含语句(例如GL /)我没有修改任何逻辑,也没有删除任何包含语句。

这个过程进展顺利,直到我遇到这个问题。

我有以下源文件:

#pragma once

#include <vector>

class Material;

/// <summary> Manages all loaded materials and shader programs. </summary>
class MaterialStore {
public:
    static MaterialStore& getInstance();
    std::vector<Material*> materials;
    Material *findMaterialWithName(std::string name);
    Material *findMaterialWithProgramID(unsigned int programID);
    void AddNewMaterial(
        std::string name, const char * vertexPath = nullptr, const char * fragmentPath = nullptr,
        const char * geometryPath = nullptr, const char * tessEvalPath = nullptr, const char * tessCtrlPath = nullptr);
    ~MaterialStore();
private:
    MaterialStore();
    MaterialStore(MaterialStore const &) = delete;
    void operator=(MaterialStore const &) = delete;
};

未编译错误消息:

enter image description here

我不明白这个问题。那里有半冒号(我试过删除并添加它)。我找不到任何语法错误。

0 个答案:

没有答案
相关问题