Просто добавьте что-то примечательное здесь.
myQueue.hpp:
template <class T>
class QueueA {
int size;
...
public:
template <class T> T dequeue() {
// implementation here
}
bool isEmpty();
...
}
myQueue можно определить методы шаблонного класса, которые просто прекрасны в файле реализации. cpp:
// implementation of regular methods goes like this:
template <class T> bool QueueA<T>::isEmpty() {
return this->size == 0;
}
main()
{
QueueA<char> Q;
...
}
Я закончил тем, что поместил модуль узла в папку app.asar.unpacked, изменив package.json:
"build": {
"asar": true,
"asarUnpack": [
"node_modules/easy-pdf-merge/**/*"
]
},
Впоследствии я использовал следующее для ссылки на модуль узла:
[111 ]