SFML/test/Audio/InputSoundFile.test.cpp
Chris Thrasher dd83189fae Enable move semantics for SoundFile types
Funny how the addition of a forward declaration resulted in
accidentally disabling move semantics for two types. We ought to
be careful that build time improvements don't have runtime
performance impacts.
2023-01-22 15:50:53 -07:00

9 lines
338 B
C++

#include <SFML/Audio/InputSoundFile.hpp>
#include <type_traits>
static_assert(!std::is_copy_constructible_v<sf::InputSoundFile>);
static_assert(!std::is_copy_assignable_v<sf::InputSoundFile>);
static_assert(std::is_nothrow_move_constructible_v<sf::InputSoundFile>);
static_assert(std::is_nothrow_move_assignable_v<sf::InputSoundFile>);