Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 3 years ago

Language

C++

Compiler

gcc HEAD 12.0.0 20210721 (experimental)

Options
Warnings
Boost 1.73.0
C++2b(GNU)
no pedantic

Author

anonymous

over 3 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2b
prog.cc: In instantiation of 'std::unique_ptr<typename std::remove_pointer<typename std::remove_reference<_Tp>::type>::type, D> make_unique_with_just_type_deleter(T&&, D) [with T = TIFF*; D = main()::<lambda(TIFF*)>; typename std::remove_pointer<typename std::remove_reference<_Tp>::type>::type = TIFF; typename std::remove_reference<_Tp>::type = TIFF*]':
prog.cc:26:48:   required from here
prog.cc:17:78: warning: unused parameter 'd' [-Wunused-parameter]
   17 | template <class T, class D> auto make_unique_with_just_type_deleter(T&& t, D d)
      |                                                                            ~~^
creating TIFF
by the way, our pointer's size is 8
compared to size of unique_ptr<int> which is 8
releasing TIFF
Exit Code:
0