mirror of
https://github.com/Icinga/icinga2.git
synced 2026-02-03 20:40:17 -05:00
Merge pull request #10552 from Icinga/remove-obsolete-gcc-workaround
Remove workaround for GCC 4.x
This commit is contained in:
commit
82cd88f093
1 changed files with 1 additions and 7 deletions
|
|
@ -109,13 +109,7 @@ private:
|
|||
* @ingroup base
|
||||
*/
|
||||
template <typename T>
|
||||
using AtomicOrLocked =
|
||||
#if defined(__GNUC__) && __GNUC__ < 5
|
||||
// GCC does not implement std::is_trivially_copyable until version 5.
|
||||
typename std::conditional<std::is_fundamental<T>::value || std::is_pointer<T>::value, std::atomic<T>, Locked<T>>::type;
|
||||
#else /* defined(__GNUC__) && __GNUC__ < 5 */
|
||||
typename std::conditional<std::is_trivially_copyable<T>::value, std::atomic<T>, Locked<T>>::type;
|
||||
#endif /* defined(__GNUC__) && __GNUC__ < 5 */
|
||||
using AtomicOrLocked = std::conditional_t<std::is_trivially_copyable_v<T>, std::atomic<T>, Locked<T>>;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue