Advertisement
atimholt

C2039 in Visual Studio’s own code.

Aug 17th, 2016
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 KB | None | 0 0
  1. (I cut out a bunch of warnings thrown by a library I’m using. Output continues below to the bottom.)
  2.  
  3. 1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\random(1537): error C2039: 'generate': is not a member of 'std::random_device'
  4. 1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\random(6621): note: see declaration of 'std::random_device'
  5. 1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\random(1523): note: see reference to function template instantiation 'void std::mersenne_twister_engine<unsigned int,0x020,0x0270,0x018d,0x01f,-1727483681,0x0b,-1,0x07,-1658038656,0x0f,-272236544,0x012,1812433253>::seed<_Seed_seq,void>(_Seed_seq &)' being compiled
  6. 1> with
  7. 1> [
  8. 1> _Seed_seq=std::random_device
  9. 1> ]
  10. 1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\random(1523): note: see reference to function template instantiation 'void std::mersenne_twister_engine<unsigned int,0x020,0x0270,0x018d,0x01f,-1727483681,0x0b,-1,0x07,-1658038656,0x0f,-272236544,0x012,1812433253>::seed<_Seed_seq,void>(_Seed_seq &)' being compiled
  11. 1> with
  12. 1> [
  13. 1> _Seed_seq=std::random_device
  14. 1> ]
  15. 1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\memory(907): note: see reference to function template instantiation 'std::mersenne_twister_engine<unsigned int,0x020,0x0270,0x018d,0x01f,-1727483681,0x0b,-1,0x07,-1658038656,0x0f,-272236544,0x012,1812433253>::mersenne_twister_engine<std::random_device,void>(_Seed_seq &)' being compiled
  16. 1> with
  17. 1> [
  18. 1> _Seed_seq=std::random_device
  19. 1> ]
  20. 1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\memory(907): note: see reference to function template instantiation 'std::mersenne_twister_engine<unsigned int,0x020,0x0270,0x018d,0x01f,-1727483681,0x0b,-1,0x07,-1658038656,0x0f,-272236544,0x012,1812433253>::mersenne_twister_engine<std::random_device,void>(_Seed_seq &)' being compiled
  21. 1> with
  22. 1> [
  23. 1> _Seed_seq=std::random_device
  24. 1> ]
  25. 1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\memory(977): note: see reference to function template instantiation 'std::_Ref_count_obj<_Ty>::_Ref_count_obj<std::random_device&>(std::random_device &)' being compiled
  26. 1> with
  27. 1> [
  28. 1> _Ty=std::mt19937
  29. 1> ]
  30. 1> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\memory(977): note: see reference to function template instantiation 'std::_Ref_count_obj<_Ty>::_Ref_count_obj<std::random_device&>(std::random_device &)' being compiled
  31. 1> with
  32. 1> [
  33. 1> _Ty=std::mt19937
  34. 1> ]
  35. 1> src\ofApp.cpp(15): note: see reference to function template instantiation 'std::shared_ptr<std::mt19937> std::make_shared<std::mt19937,std::random_device&>(std::random_device &)' being compiled
  36. ========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement