trac is broken, it thinks everything is spam

Website issues & feedback. Constructive criticism is welcome.
(Guest posting is allowed under certain circumstances)
If you have a problem with certain individuals, then PM the Staff account.
Slento

trac is broken, it thinks everything is spam

Post by Slento »

I was trying to post this as a bug report but trac page thinks this is spam. I tried tons of times and it always failed.


I am trying the latest master builds and I get compile errors.
Here they are.

8> Generating parser based on grammar...
8> Generating parser based on grammar...
8> Generating lexical analyser...
8> Generating lexical analyser...
8> Generating lexical analyser...
8> pointtree.cpp
8> *** Warnings 4018,4100,4127,4204,4244,4267,4389,4512,4800 have been squelched. ***
8>C:\Microsoft VisualStudio\VC\include\utility(163): error C2440: 'initializing' : cannot convert from 'int' to 'void *'
8> Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
8> C:\Microsoft VisualStudio\VC\include\utility(247) : see reference to function template instantiation 'std::_Pair_base<_Ty1,_Ty2>::_Pair_base<uint64_t&,_Ty>(_Other1,_Other2 &&)' being compiled
8> with
8> [
8> _Ty1=uint64_t,
8> _Ty2=void *,
8> _Ty=int,
8> _Other1=uint64_t &,
8> _Other2=int
8> ]
8> ..\src\pointtree.cpp(239) : see reference to function template instantiation 'std::pair<_Ty1,_Ty2>::pair<uint64_t&,int>(_Other1,_Other2 &&)' being compiled
8> with
8> [
8> _Ty1=uint64_t,
8> _Ty2=void *,
8> _Other1=uint64_t &,
8> _Other2=int
8> ]
8> ..\src\pointtree.cpp(279) : see reference to function template instantiation 'PointTree::ResultVector &PointTree::queryMaybeFilter<false>(PointTree::Filter &,int32_t,int32_t,uint32_t)' being compiled
8>C:\Microsoft VisualStudio\VC\include\utility(163): error C2439: 'std::_Pair_base<_Ty1,_Ty2>::second' : member could not be initialized
8> with
8> [
8> _Ty1=uint64_t,
8> _Ty2=void *
8> ]
8> C:\Microsoft VisualStudio\VC\include\utility(167) : see declaration of 'std::_Pair_base<_Ty1,_Ty2>::second'
8> with
8> [
8> _Ty1=uint64_t,
8> _Ty2=void *
8> ]
Slento

Re: trac is broken, it thinks everything is spam

Post by Slento »

Sorry, message got cut.

The fix is to do
unsigned i1 = std::lower_bound(points.begin(), points.end(), Point(ranges[r].a, nullptr), pointTreeSortFunction) - points.begin();
unsigned i2 = std::upper_bound(points.begin() + i1, points.end(), Point(ranges[r].z, nullptr), pointTreeSortFunction) - points.begin();

to conform to C++ standards.
GCC has error also if you do -std=c++0x

Thanks.
Cyp
Evitcani
Evitcani
Posts: 784
Joined: 17 Jan 2010, 23:35

Re: trac is broken, it thinks everything is spam

Post by Cyp »

  • Status changed from new to closed
  • Resolution set to fixed
Fix compilation with C++0x compilers.

Can't use nullptr, until switching to C++0x.

Fixes forum_thread:f=2&t=7552.

        Changeset: 733ab6e9119f056a7472b1d4166f00dc3a35da17
antomL

Re: trac is broken, it thinks everything is spam

Post by antomL »

Dudes, this is still broken. :augh:

I tried to send bug report with fix and it rejected it as spam.
Dudes, you forgot the include file.

..\src\main.cpp(1065): error C3861: 'CommandLineToArgvW': identifier not found

I suggest this.

{{{
#if defined(WZ_OS_WIN)
# include <shlobj.h> /* For SHGetFolderPath */
# include <shellapi.h>
#elif defined(WZ_OS_UNIX)
# include <errno.h>
#endif // WZ_OS_WIN
}}}