mirror of
https://github.com/boostorg/core.git
synced 2025-11-28 21:30:09 +01:00
Add use_default to Core
This commit is contained in:
@@ -133,6 +133,8 @@ run empty_value_final_test.cpp ;
|
||||
run quick_exit_test.cpp ;
|
||||
run-fail quick_exit_fail.cpp ;
|
||||
|
||||
compile use_default_test.cpp ;
|
||||
|
||||
lib lib_typeid : lib_typeid.cpp : <link>shared:<define>LIB_TYPEID_DYN_LINK=1 ;
|
||||
|
||||
run test_lib_typeid.cpp lib_typeid : : : <link>shared : test_lib_typeid_shared ;
|
||||
|
||||
15
test/use_default_test.cpp
Normal file
15
test/use_default_test.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
Copyright 2019 Glen Joseph Fernandes
|
||||
(glenjofe@gmail.com)
|
||||
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
#include <boost/core/use_default.hpp>
|
||||
|
||||
template<class, class = boost::use_default>
|
||||
struct type { };
|
||||
|
||||
template class type<int>;
|
||||
template class type<void, boost::use_default>;
|
||||
Reference in New Issue
Block a user