no message

master
caiyuzheng 2020-05-18 17:26:48 +08:00
parent bcf8e6d63d
commit 5aedbe969a
2 changed files with 4 additions and 4 deletions

View File

@ -31,8 +31,7 @@
</component>
<component name="ChangeListManager">
<list default="true" id="0facce0d-c642-4d80-b2fb-daf5f3e68dff" name="Default Changelist" comment="">
<change afterPath="$PROJECT_DIR$/general/src/pattern/factory.hpp" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/general/src/pattern/factory.hpp" beforeDir="false" afterPath="$PROJECT_DIR$/general/src/pattern/factory.hpp" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />

View File

@ -4,11 +4,12 @@
#ifndef GENERAL_FACTORY_HPP
#define GENERAL_FACTORY_HPP
#include <string>
using namespace std;
template<typename T>
class Factory{
public:
virtual T* GetProduct(){
virtual T* GetProduct(std::string type){
return nullptr;
}
};