• Zhao Zhili's avatar
    Fix compilation error · fef36fb7
    Zhao Zhili authored
    Until C++17, a function could not return a tuple using
    list-initialization.
    
    g++ (Debian 6.3.0-18) has no problem with -std=c++11.
    g++ (Ubuntu 5.4.0-6ubuntu1~16.04.11) failed with:
    
    ../src/filesystem/common/CommonDevice.cpp:85:30: error: converting to ‘std::tuple<bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >’ from initializer list would use explicit constructor ‘constexpr std::tuple<_T1, _T2>::tuple(_U1&&, _U2&&) [with _U1 = bool; _U2 = const std::__cxx11::basic_string<char>&; <template-parameter-2-3> = void; _T1 = bool; _T2 = std::__cxx11::basic_string<char>]’
                 return { true, m };
    Fix #54Signed-off-by: 's avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
    (cherry picked from commit f327e891)
    Signed-off-by: 's avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
    fef36fb7
Name
Last commit
Last update
..
compat Loading commit data...
database Loading commit data...
discoverer Loading commit data...
factory Loading commit data...
filesystem Loading commit data...
logging Loading commit data...
metadata_services Loading commit data...
parser Loading commit data...
utils Loading commit data...
Album.cpp Loading commit data...
Album.h Loading commit data...
AlbumTrack.cpp Loading commit data...
AlbumTrack.h Loading commit data...
Artist.cpp Loading commit data...
Artist.h Loading commit data...
AudioTrack.cpp Loading commit data...
AudioTrack.h Loading commit data...
Device.cpp Loading commit data...
Device.h Loading commit data...
Factory.cpp Loading commit data...
File.cpp Loading commit data...
File.h Loading commit data...
Folder.cpp Loading commit data...
Folder.h Loading commit data...
Genre.cpp Loading commit data...
Genre.h Loading commit data...
Label.cpp Loading commit data...
Label.h Loading commit data...
Media.cpp Loading commit data...
Media.h Loading commit data...
MediaLibrary.cpp Loading commit data...
MediaLibrary.h Loading commit data...
Metadata.cpp Loading commit data...
Metadata.h Loading commit data...
Movie.cpp Loading commit data...
Movie.h Loading commit data...
Playlist.cpp Loading commit data...
Playlist.h Loading commit data...
Settings.cpp Loading commit data...
Settings.h Loading commit data...
Show.cpp Loading commit data...
Show.h Loading commit data...
ShowEpisode.cpp Loading commit data...
ShowEpisode.h Loading commit data...
SubtitleTrack.cpp Loading commit data...
SubtitleTrack.h Loading commit data...
Thumbnail.cpp Loading commit data...
Thumbnail.h Loading commit data...
VideoTrack.cpp Loading commit data...
VideoTrack.h Loading commit data...