Daniel Duque

-1

votes
0

answer
21

views

std::string out of range eventhough I am not using any index

I get the following error message: string subscript out of range. I believe it has more to do with my templates definition because I am not using any string subscripts anywhere. I have not been able to figure this out, I have tried defining and implementing my templates in various ways but the resul...
Daniel Duque
1

votes
0

answer
14

views

Is a fully specialized template function the same as a regular function?

If I have: template bool name (std::string); template bool name(std::string); What is the difference between the fully specialized function and my other regular functions. For example in the header I would have to have these declarations plus the template definition; nevertheless I can have the sp...
Daniel Duque
0

votes
1

answer
12

views

how to get Mongoose findById response inside a map function of lodash?

I have an array with ids and I need to look for those ids in a collection called Users (collection and model exists) to get information about the user with that id. var emails = _.map(toSendEmails,function(id){ var userEmail = User.findById(id, function(err, user) { return user.email; }); return use...
Daniel Duque