NAN 1.5 WIP

This branch will become NAN 1.5.
Added Asyncworker #207 and new NanNew #210. Needs more testing with actual addons.
Now split into many files. Seems to work so far. Good news for nauv.h
class was one letter shorter and made it fit in 80 columns

On November 8, 2014 6:38:15 PM EET, David Siegel <notifications@github.com> wrote:
>> +struct Factory<v8::BooleanObject> : public
>FactoryBase<v8::BooleanObject> {
>> +  static inline return_t New(bool value);
>> +};
>> +
>> +template <>
>> +struct Factory<v8::Date> : public FactoryBase<v8::Date> {
>> +  static inline return_t New(double value);
>> +};
>> +
>> +template <>
>> +struct Factory<v8::External> : public FactoryBase<v8::External> {
>> +  static inline return_t New(void *value);
>> +};
>> +
>> +template <>
>> +class Factory<v8::FunctionTemplate> : public
>FactoryBase<v8::FunctionTemplate> {
>
>Why do you use `class` instead of `struct` here? It triggers a warning
>on my end:
>
>````
>../../nan_new.h:65:1: warning: 'Factory' defined as a class template
>here but previously declared as a struct template
>      [-Wmismatched-tags]
>class Factory<v8::FunctionTemplate> : public
>FactoryBase<v8::FunctionTemplate> {
>^
>../../nan_new.h:36:23: note: did you mean class here?
>template <typename T> struct Factory;
>                      ^~~~~~
>                      class
>````
>
>
>---
>Reply to this email directly or view it on GitHub:
>https://github.com/rvagg/nan/pull/216/files#r20052592