Questions tagged [stdcopy]

17 questions
0
votes
2 answers

getting segmentation fault when copying arrays using std::copy

i'm trying to carry out a pascal triangle, and i need to copy an array to an other, i'm currently using the copy function but getting the famous segmentation fault. here is my code: #include #include #include…
lyes
  • 15
  • 2
0
votes
1 answer

binary copy data from struct to std::vector

I am using a lib which can load BMP images from memory. I have a class which represents a BMP. To load from memory I have to supply a pointer to some BMP formatted data in memory and a variable for the size of that data. (void* data, size_t…
FreelanceConsultant
  • 13,167
  • 27
  • 115
  • 225
1
2