• Zhao Zhili's avatar
    Fix compilation error · f327e891
    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: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
    f327e891
Name
Last commit
Last update
googletest @ c9945853 Loading commit data...
include Loading commit data...
libvlcpp @ 59676a24 Loading commit data...
m4 Loading commit data...
src Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.gitmodules Loading commit data...
COPYING Loading commit data...
Makefile.am Loading commit data...
bootstrap Loading commit data...
configure.ac Loading commit data...
medialibrary.pc.in Loading commit data...