Permalink
Browse files

Declare templates

  • Loading branch information...
1 parent 2cd3365 commit c883dc678cfaefc4dfc7978bb1620ebbc2b4fa16 @creationix creationix committed Mar 22, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/luv.cc
View
5 src/luv.cc
@@ -7,6 +7,9 @@
using namespace candor;
+template uv_handle_t* UVData::ObjectTo<uv_handle_t>(candor::Object* obj);
+template uv_timer_t* UVData::ObjectTo<uv_timer_t>(candor::Object* obj);
+
UVData::UVData(size_t size, Object* prototype) {
// Create a new data object
if (prototype) {
@@ -39,4 +42,4 @@ T* UVData::ObjectTo(candor::Object* obj) {
Object* UVData::VoidToObject(void* ptr) {
return *((Handle<Object>)(Object*)ptr);
-}
+}

0 comments on commit c883dc6

Please sign in to comment.