Skip to content

Conversation

jigarsha
Copy link

@jigarsha jigarsha commented Jun 2, 2017

Comparator 'greater' should also include the type.
Compilation fails with the following error.
error: wrong number of template arguments (0, should be 1)
priority_queue<IteratorCurrAndEnd, vector greater<> > min_heap;
Proposed change is to simply include the type.
Using the following compiler version:
g++ --version;
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix

Comparator 'greater' should also include the type.
Compilation fails with the following error.
error: wrong number of template arguments (0, should be 1)
priority_queue<IteratorCurrAndEnd, vector greater<> > min_heap;
Proposed change is to simply include the type.
Using the following compiler version:
g++ --version;
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant