Re: ambiguous call to overloaded function
On Oct 10, 1:42 am, Ulrich Eckhardt <eckha...@satorlaser.com> wrote:
cablep...@gmail.com wrote:
[about a minimal example]
Hmm thats probably as minimal as i can get...
With 'minimal example' I mean a piece of code which I can feed to a compiler
and which will emit the faulty behaviour.
the compiler visual c++ 9.0 (beta edition).
Have you tried any other compilers?
Uli
Here is mediandef.hpp
#ifndef MEDIANDEF_HPP
#define MEDIANDEF_HPP
#include "median.hpp"
template <typename T,
template <typename ELEM, typename = std::allocator<ELEM> >
class CONT
void select_sort(CONT<T>& Array, typename CONT<T>::iterator iter,
const int& size, const int& step)
{
printf("Awesomely cool");
}
#endif
Here is median.hpp
#ifndef MEDIAN_HPP
#define MEDIAN_HPP
#ifndef INCLUDED_MEMORY
#include <memory>
#define INCLUDED_MEMORY
#endif
template <typename T,
template <typename ELEM, typename = std::allocator<ELEM> >
class CONT
extern void select_sort(CONT<T>&, typename CONT<T>::iterator, const
int&, const int&);
#endif
Here is median_test.cpp
#include "mediandef.hpp"
#include <vector>
int main()
{
std::vector<int> my_vec(4, 4);
select_sort(my_vec, my_vec.begin(), 4, 2);
}