Timeline for C++ Prime Number Library
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 1, 2016 at 4:36 | comment | added | Dan Oberlam | @InversePalindrome its certainly possible that parts of this aren't exactly correct - I didn't have a compiler on the machine I wrote this code on. Change it to not use auto - either specify the type, or you could probably make it work with decltype. | |
| Jul 1, 2016 at 4:01 | comment | added | InversePalindrome | I am having issues with the largest_palindromic_prime() function, the compiler is telling me that auto is not allowed in a lambda parameter. I am not used to working with lambdas so I am a little bit lost in that part, what can I do to fix the following line: auto it = std::find_if(primes.rbegin(), primes.rend(), [&](auto it) { auto num = primes.size() - std::distance(primes.rbegin(), it) | |
| Jul 1, 2016 at 1:37 | vote | accept | InversePalindrome | ||
| Jun 30, 2016 at 23:32 | history | answered | Dan Oberlam | CC BY-SA 3.0 |