Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update merge_sorted_arrays.h #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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