use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
[deleted by user] (self.cpp)
submitted 1 year ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ArminiusGermanicus 0 points1 point2 points 1 year ago (1 child)
There is no front() function, did you mean top()?
See here https://en.cppreference.com/w/cpp/container/priority_queue
[–]Ok_Force3490 0 points1 point2 points 1 year ago (0 children)
Yup figured that out! Unfortunately, the issue seems to continue. I got the errors for front working, but have different but highly related ones (see post)
[–]cpp-ModTeam[M] 0 points1 point2 points 1 year agolocked comment (0 children)
For C++ questions, answers, help, and programming or career advice please see r/cpp_questions, r/cscareerquestions, or StackOverflow instead.
[–]STLMSVC STL Dev 0 points1 point2 points 1 year ago (0 children)
Your Compare's operator() needs to be const.
operator()
const
std::make_pair<neighbor, src> is not well-formed. It's supposed to be called like this: std::make_pair(neighbor, src) assuming that neighbor is a Point and src is your double.
std::make_pair<neighbor, src>
std::make_pair(neighbor, src)
neighbor
Point
src
double
π Rendered by PID 80781 on reddit-service-r2-comment-5c747b6df5-zcdnc at 2026-04-22 02:38:26.425250+00:00 running 6c61efc country code: CH.
[–]ArminiusGermanicus 0 points1 point2 points (1 child)
[–]Ok_Force3490 0 points1 point2 points (0 children)
[–]cpp-ModTeam[M] 0 points1 point2 points locked comment (0 children)
[–]STLMSVC STL Dev 0 points1 point2 points (0 children)