Skip to content

Commit

Permalink
Update ObjPush.h
Browse files Browse the repository at this point in the history
  • Loading branch information
sniperHW committed Sep 28, 2016
1 parent d38e25f commit 0a43982
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions ObjPush.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,6 @@ class objPush<const char *>
}
};

template<>
class objPush<char*>
{
public:
objPush(lua_State *L,char *value)
{
lua_pushstring(L,value);
}
};


//对int64的特化成
template<>
class objPush<int64_t>
Expand All @@ -122,7 +111,7 @@ class objPush<std::string>
public:
objPush(lua_State *L,const std::string &arg)
{
lua_pushstring(L,arg.c_str());
lua_pushlstring(L,arg.c_str(),arg.size());
}
};

Expand Down

0 comments on commit 0a43982

Please sign in to comment.