Hello

Trying to compile some c++11 portions of KDE, I ran into an issue where 
QList<T>::Iterator seems not to be qualified to become libc++'s 
std::list<T>::list(_InpIter,_InpIter, ...) _InpIter type, although it could 
also be related to the enable_if<__is_input_iterator<_InpIter>::value> type 
(I'm not familiar with the new c++ standard yet).

I have attached a reduced test to reproduce the error (test-1.cc). 
There's also a problem with incomplete/forward declaration of 
std::random_access_iterator_tag pulled in by QtCore header (test-2.cc).

Could you please take a look at this issue?

Alonso
/*
 * Works with
 * clang++ -std=c++11 `pkg-config --cflags QtCore` -c test-1.cc
 * Fails with
 * clang++ -std=c++11 -stdlib=libc++ `pkg-config --cflags QtCore` -c test-1.cc
 */

#include <list>
#include <cstdlib>
#include <QList>

int
main ()
{
  QList<int>     qlist;
  std::list<int> slist;

  slist = std::list<int>(qlist.begin(), qlist.end());

  return (EXIT_SUCCESS);
}
/*
 * Works with
 * clang++ -std=c++11 `pkg-config --cflags QtCore` -c test-2.cc
 * Fails with
 * clang++ -std=c++11 -stdlib=libc++ `pkg-config --cflags QtCore` -c test-2.cc
 */

#include <cstdlib>
#include <QtCore>

int
main ()
{
  return (EXIT_SUCCESS);
}
_______________________________________________
kde-freebsd mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-freebsd
See also http://freebsd.kde.org/ for latest information

Reply via email to