|
Boost : |
Subject: Fwd: Ignoring unused type aliases in concepts
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2018-12-17 13:52:20
Hi,
I asked this on Boost developer's list because I'm deciding
which option to use for GIL.
My thoughts: I'm inclined to use 2 or 3.
2.
pros: code is less polluted, just file content wrapped
cons: different #pragmas for GCC/clang and MSVC
3.
pros: single solution for all compilers
const: inline pollution of code
Have a look and share your thoughts.
ML
---------- Forwarded message ---------
From: Mateusz Loskot <mateusz_at_[hidden]>
Date: Mon, 17 Dec 2018 at 14:41
Subject: Ignoring unused type aliases in concepts
To: <boost_at_[hidden]>
Hi,
In concepts, such unused type aliases are not uncommon.
What is the best way to ignore compiler warnings about those?
Options I'm aware of are:
1. Adjust compile options in build configuration (Jamfile)
2. Use #pragma in headers
3. Use boost::ignore_unused_variable_warning(alias{}) (or little
brother boost::ignore_unused)
4. Ignore ignoring them.
The options 1 and 2 are mentioned on
https://svn.boost.org/trac10/wiki/Guidelines/WarningsGuidelines
The option 3 is not and is there any particular reason why?
Best regards,
-- Mateusz Loskot, http://mateusz.loskot.net -- Mateusz Loskot, http://mateusz.loskot.net
Boost list run by Boost-Gil-Owners