Comments (5)
msvc-11.0 failure edited out, was a local issue.
from type_traits.
from type_traits.
Odd.
C:\Projects\boost-git\boost\libs\type_traits>g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-cygwin/6.3.0/lto-wrapper.exe
Target: i686-pc-cygwin
Configured with: /cygdrive/i/szsz/tmpp/gcc/gcc-6.3.0-2.i686/src/gcc-6.3.0/config
ure --srcdir=/cygdrive/i/szsz/tmpp/gcc/gcc-6.3.0-2.i686/src/gcc-6.3.0 --prefix=/
usr --exec-prefix=/usr --localstatedir=/var --sysconfdir=/etc --docdir=/usr/shar
e/doc/gcc --htmldir=/usr/share/doc/gcc/html -C --build=i686-pc-cygwin --host=i68
6-pc-cygwin --target=i686-pc-cygwin --without-libiconv-prefix --without-libintl-
prefix --libexecdir=/usr/lib --enable-shared --enable-shared-libgcc --enable-sta
tic --enable-version-specific-runtime-libs --enable-bootstrap --enable-__cxa_ate
xit --with-dwarf2 --with-arch=i686 --with-tune=generic --disable-sjlj-exceptions
--enable-languages=ada,c,c++,fortran,lto,objc,obj-c++ --enable-graphite --enabl
e-threads=posix --enable-libatomic --enable-libcilkrts --enable-libgomp --enable
-libitm --enable-libquadmath --enable-libquadmath-support --enable-libssp --enab
le-libada --disable-symvers --with-gnu-ld --with-gnu-as --with-cloog-include=/us
r/include/cloog-isl --without-libiconv-prefix --without-libintl-prefix --with-sy
stem-zlib --enable-linker-build-id --with-default-libstdcxx-abi=gcc4-compatible
Thread model: posix
gcc version 6.3.0 (GCC)
C:\Projects\boost-git\boost\libs\type_traits>b2 test//alignment_of_test toolset=
gcc-cxx03
Performing configuration checks
- 32-bit : yes (cached)
- arm : no (cached)
- mips1 : no (cached)
- power : no (cached)
- sparc : no (cached)
- x86 : yes (cached)
- symlinks supported : no (cached)
- junctions supported : yes (cached)
- hardlinks supported : yes (cached)
...patience...
...found 803 targets...
...updating 2 targets...
testing.capture-output ..\..\bin.v2\libs\type_traits\test\alignment_of_test.test
\gcc-cxx03-6.3.0\debug\alignment_of_test.run
====== BEGIN OUTPUT ======
test\alignment_of_test.cpp:90: The expression: "::boost::alignment_of<double>::v
alue" had an invalid value (found 8, expected 4)
test\alignment_of_test.cpp:93: The expression: "::boost::alignment_of< ::boost::
long_long_type>::value" had an invalid value (found 8, expected 4)
EXIT STATUS: 2
====== END OUTPUT ======
from type_traits.
Mystery solved, I use -std=c++03
and you use -std=gnu++03
. The latter works, the former fails as above.
from type_traits.
Nope, just looked at this again with both 64 and 32 bit versions of mingw 6.3 and 7.2 and still can't reproduce :(
I do dimly remember that GCC's __alignof__
sometimes lies. So I think the thing for you to do is file a PR against intrinsics.hpp so that we don't use the intrinsic for the cases which don't work?
from type_traits.
Related Issues (20)
- `-Wconversion` warning in `type_traits/is_complete.hpp` HOT 1
- `-Wundef` warnings in `is_mem_fun_pointer_impl.hpp` HOT 1
- Boost\libs\type_traits failed to build due to error C2338 on MSVC HOT 2
- -Wconversion warning with is_signed for enums HOT 1
- __has_trivial_assign etc. deprecated under clang 15 HOT 1
- boost::is_integral<char8_t>::value is false HOT 1
- type_traits: Deprecation warnings with clang 15 HOT 1
- more classification/traits
- is_floating_point does not contain any C++23 types HOT 1
- add/rename remove_cv_ref to (C++20 compatible) remove_cvref HOT 1
- add is_integer HOT 3
- add is_character HOT 1
- add is_number HOT 3
- add remove_cvptr HOT 1
- add is_bool HOT 3
- add is_quotrem_order HOT 2
- add is_logic HOT 2
- add is_function_pointer
- add dependent_false HOT 2
- boost::has_left_shift does not work with containers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from type_traits.