mirror of
https://github.com/boostorg/typeof.git
synced 2025-06-25 12:01:34 +02:00
Compare commits
8 Commits
boost-1.36
...
svn-branch
Author | SHA1 | Date | |
---|---|---|---|
55d1339dd4 | |||
d7a097c705 | |||
7d3afd076d | |||
6926249653 | |||
b9282a9672 | |||
b0934ae746 | |||
6c8378110f | |||
d2c6a52631 |
0
include/boost/typeof/dmc/typeof_impl.hpp
Executable file → Normal file
0
include/boost/typeof/dmc/typeof_impl.hpp
Executable file → Normal file
0
include/boost/typeof/encode_decode.hpp
Executable file → Normal file
0
include/boost/typeof/encode_decode.hpp
Executable file → Normal file
0
include/boost/typeof/encode_decode_params.hpp
Executable file → Normal file
0
include/boost/typeof/encode_decode_params.hpp
Executable file → Normal file
0
include/boost/typeof/incr_registration_group.hpp
Executable file → Normal file
0
include/boost/typeof/incr_registration_group.hpp
Executable file → Normal file
0
include/boost/typeof/int_encoding.hpp
Executable file → Normal file
0
include/boost/typeof/int_encoding.hpp
Executable file → Normal file
0
include/boost/typeof/integral_template_param.hpp
Executable file → Normal file
0
include/boost/typeof/integral_template_param.hpp
Executable file → Normal file
0
include/boost/typeof/message.hpp
Executable file → Normal file
0
include/boost/typeof/message.hpp
Executable file → Normal file
0
include/boost/typeof/modifiers.hpp
Executable file → Normal file
0
include/boost/typeof/modifiers.hpp
Executable file → Normal file
0
include/boost/typeof/msvc/typeof_impl.hpp
Executable file → Normal file
0
include/boost/typeof/msvc/typeof_impl.hpp
Executable file → Normal file
0
include/boost/typeof/native.hpp
Executable file → Normal file
0
include/boost/typeof/native.hpp
Executable file → Normal file
0
include/boost/typeof/pointers_data_members.hpp
Executable file → Normal file
0
include/boost/typeof/pointers_data_members.hpp
Executable file → Normal file
0
include/boost/typeof/register_functions.hpp
Executable file → Normal file
0
include/boost/typeof/register_functions.hpp
Executable file → Normal file
0
include/boost/typeof/register_functions_iterate.hpp
Executable file → Normal file
0
include/boost/typeof/register_functions_iterate.hpp
Executable file → Normal file
0
include/boost/typeof/register_fundamental.hpp
Executable file → Normal file
0
include/boost/typeof/register_fundamental.hpp
Executable file → Normal file
0
include/boost/typeof/register_mem_functions.hpp
Executable file → Normal file
0
include/boost/typeof/register_mem_functions.hpp
Executable file → Normal file
0
include/boost/typeof/std/bitset.hpp
Executable file → Normal file
0
include/boost/typeof/std/bitset.hpp
Executable file → Normal file
0
include/boost/typeof/std/complex.hpp
Executable file → Normal file
0
include/boost/typeof/std/complex.hpp
Executable file → Normal file
0
include/boost/typeof/std/deque.hpp
Executable file → Normal file
0
include/boost/typeof/std/deque.hpp
Executable file → Normal file
0
include/boost/typeof/std/fstream.hpp
Executable file → Normal file
0
include/boost/typeof/std/fstream.hpp
Executable file → Normal file
0
include/boost/typeof/std/functional.hpp
Executable file → Normal file
0
include/boost/typeof/std/functional.hpp
Executable file → Normal file
0
include/boost/typeof/std/iostream.hpp
Executable file → Normal file
0
include/boost/typeof/std/iostream.hpp
Executable file → Normal file
0
include/boost/typeof/std/istream.hpp
Executable file → Normal file
0
include/boost/typeof/std/istream.hpp
Executable file → Normal file
0
include/boost/typeof/std/iterator.hpp
Executable file → Normal file
0
include/boost/typeof/std/iterator.hpp
Executable file → Normal file
0
include/boost/typeof/std/list.hpp
Executable file → Normal file
0
include/boost/typeof/std/list.hpp
Executable file → Normal file
0
include/boost/typeof/std/locale.hpp
Executable file → Normal file
0
include/boost/typeof/std/locale.hpp
Executable file → Normal file
0
include/boost/typeof/std/map.hpp
Executable file → Normal file
0
include/boost/typeof/std/map.hpp
Executable file → Normal file
0
include/boost/typeof/std/memory.hpp
Executable file → Normal file
0
include/boost/typeof/std/memory.hpp
Executable file → Normal file
0
include/boost/typeof/std/ostream.hpp
Executable file → Normal file
0
include/boost/typeof/std/ostream.hpp
Executable file → Normal file
0
include/boost/typeof/std/queue.hpp
Executable file → Normal file
0
include/boost/typeof/std/queue.hpp
Executable file → Normal file
0
include/boost/typeof/std/set.hpp
Executable file → Normal file
0
include/boost/typeof/std/set.hpp
Executable file → Normal file
0
include/boost/typeof/std/sstream.hpp
Executable file → Normal file
0
include/boost/typeof/std/sstream.hpp
Executable file → Normal file
0
include/boost/typeof/std/stack.hpp
Executable file → Normal file
0
include/boost/typeof/std/stack.hpp
Executable file → Normal file
0
include/boost/typeof/std/streambuf.hpp
Executable file → Normal file
0
include/boost/typeof/std/streambuf.hpp
Executable file → Normal file
0
include/boost/typeof/std/string.hpp
Executable file → Normal file
0
include/boost/typeof/std/string.hpp
Executable file → Normal file
0
include/boost/typeof/std/utility.hpp
Executable file → Normal file
0
include/boost/typeof/std/utility.hpp
Executable file → Normal file
0
include/boost/typeof/std/valarray.hpp
Executable file → Normal file
0
include/boost/typeof/std/valarray.hpp
Executable file → Normal file
0
include/boost/typeof/std/vector.hpp
Executable file → Normal file
0
include/boost/typeof/std/vector.hpp
Executable file → Normal file
0
include/boost/typeof/template_encoding.hpp
Executable file → Normal file
0
include/boost/typeof/template_encoding.hpp
Executable file → Normal file
0
include/boost/typeof/template_template_param.hpp
Executable file → Normal file
0
include/boost/typeof/template_template_param.hpp
Executable file → Normal file
0
include/boost/typeof/type_encoding.hpp
Executable file → Normal file
0
include/boost/typeof/type_encoding.hpp
Executable file → Normal file
0
include/boost/typeof/type_template_param.hpp
Executable file → Normal file
0
include/boost/typeof/type_template_param.hpp
Executable file → Normal file
0
include/boost/typeof/typeof.hpp
Executable file → Normal file
0
include/boost/typeof/typeof.hpp
Executable file → Normal file
0
include/boost/typeof/typeof_impl.hpp
Executable file → Normal file
0
include/boost/typeof/typeof_impl.hpp
Executable file → Normal file
0
include/boost/typeof/vector.hpp
Executable file → Normal file
0
include/boost/typeof/vector.hpp
Executable file → Normal file
0
include/boost/typeof/vector100.hpp
Executable file → Normal file
0
include/boost/typeof/vector100.hpp
Executable file → Normal file
0
include/boost/typeof/vector150.hpp
Executable file → Normal file
0
include/boost/typeof/vector150.hpp
Executable file → Normal file
0
include/boost/typeof/vector200.hpp
Executable file → Normal file
0
include/boost/typeof/vector200.hpp
Executable file → Normal file
0
include/boost/typeof/vector50.hpp
Executable file → Normal file
0
include/boost/typeof/vector50.hpp
Executable file → Normal file
0
index.html
Executable file → Normal file
0
index.html
Executable file → Normal file
0
test/data_member.cpp
Executable file → Normal file
0
test/data_member.cpp
Executable file → Normal file
26
test/experimental_1.cpp
Executable file
26
test/experimental_1.cpp
Executable file
@ -0,0 +1,26 @@
|
||||
|
||||
template<typename ID>
|
||||
struct msvc_extract_type
|
||||
{
|
||||
template<bool>
|
||||
struct id2type_impl;
|
||||
|
||||
typedef id2type_impl<true> id2type;
|
||||
};
|
||||
|
||||
template<typename T, typename ID>
|
||||
struct msvc_register_type : msvc_extract_type<ID>
|
||||
{
|
||||
template<>
|
||||
struct id2type_impl<true> //VC7.0 specific bugfeature
|
||||
{
|
||||
typedef T type;
|
||||
};
|
||||
};
|
||||
|
||||
int main() {
|
||||
sizeof(msvc_register_type<double,int>);
|
||||
typedef msvc_extract_type<int>::id2type::type deduced_type;
|
||||
deduced_type f=5.0;
|
||||
return 0;
|
||||
}
|
39
test/experimental_2.cpp
Executable file
39
test/experimental_2.cpp
Executable file
@ -0,0 +1,39 @@
|
||||
|
||||
struct msvc_extract_type_default_param {};
|
||||
|
||||
template<typename ID, typename T = msvc_extract_type_default_param>
|
||||
struct msvc_extract_type;
|
||||
|
||||
template<typename ID>
|
||||
struct msvc_extract_type<ID, msvc_extract_type_default_param> {
|
||||
template<bool>
|
||||
struct id2type_impl;
|
||||
|
||||
typedef id2type_impl<true> id2type;
|
||||
};
|
||||
|
||||
template<typename ID, typename T>
|
||||
struct msvc_extract_type : msvc_extract_type<ID,msvc_extract_type_default_param>
|
||||
{
|
||||
template<>
|
||||
struct id2type_impl<true> //VC8.0 specific bugfeature
|
||||
{
|
||||
typedef T type;
|
||||
};
|
||||
template<bool>
|
||||
struct id2type_impl;
|
||||
|
||||
typedef id2type_impl<true> id2type;
|
||||
};
|
||||
|
||||
template<typename T, typename ID>
|
||||
struct msvc_register_type : msvc_extract_type<ID, T>
|
||||
{
|
||||
};
|
||||
|
||||
int main() {
|
||||
sizeof(msvc_register_type<double,int>);
|
||||
typedef msvc_extract_type<int>::id2type::type deduced_type;
|
||||
deduced_type f=5.0;
|
||||
return 0;
|
||||
}
|
23
test/experimental_3.cpp
Executable file
23
test/experimental_3.cpp
Executable file
@ -0,0 +1,23 @@
|
||||
|
||||
template<typename ID>
|
||||
struct msvc_extract_type
|
||||
{
|
||||
struct id2type;
|
||||
};
|
||||
|
||||
template<typename T, typename ID>
|
||||
struct msvc_register_type : msvc_extract_type<ID>
|
||||
{
|
||||
typedef msvc_extract_type<ID> base_type;
|
||||
struct base_type::id2type // This uses nice VC6.5 and VC7.1 bugfeature
|
||||
{
|
||||
typedef T type;
|
||||
};
|
||||
};
|
||||
|
||||
int main() {
|
||||
sizeof(msvc_register_type<double,int>);
|
||||
typedef msvc_extract_type<int>::id2type::type deduced_type;
|
||||
deduced_type f=5.0;
|
||||
return 0;
|
||||
}
|
9
test/experimental_4.cpp
Executable file
9
test/experimental_4.cpp
Executable file
@ -0,0 +1,9 @@
|
||||
#include <typeinfo>
|
||||
|
||||
template<const std::type_info& info>
|
||||
struct msvc_register_type {
|
||||
};
|
||||
|
||||
int main() {
|
||||
msvc_register_type<typeid(double)>;
|
||||
}
|
0
test/function.cpp
Executable file → Normal file
0
test/function.cpp
Executable file → Normal file
0
test/function_binding.cpp
Executable file → Normal file
0
test/function_binding.cpp
Executable file → Normal file
0
test/function_ptr.cpp
Executable file → Normal file
0
test/function_ptr.cpp
Executable file → Normal file
0
test/function_ptr_from_tpl.cpp
Executable file → Normal file
0
test/function_ptr_from_tpl.cpp
Executable file → Normal file
0
test/function_ref.cpp
Executable file → Normal file
0
test/function_ref.cpp
Executable file → Normal file
0
test/member_function.cpp
Executable file → Normal file
0
test/member_function.cpp
Executable file → Normal file
0
test/modifiers.cpp
Executable file → Normal file
0
test/modifiers.cpp
Executable file → Normal file
0
test/noncopyable.cpp
Executable file → Normal file
0
test/noncopyable.cpp
Executable file → Normal file
0
test/odr.hpp
Executable file → Normal file
0
test/odr.hpp
Executable file → Normal file
0
test/odr1.cpp
Executable file → Normal file
0
test/odr1.cpp
Executable file → Normal file
0
test/odr2.cpp
Executable file → Normal file
0
test/odr2.cpp
Executable file → Normal file
0
test/odr_no_uns1.cpp
Executable file → Normal file
0
test/odr_no_uns1.cpp
Executable file → Normal file
0
test/odr_no_uns1.hpp
Executable file → Normal file
0
test/odr_no_uns1.hpp
Executable file → Normal file
0
test/odr_no_uns2.cpp
Executable file → Normal file
0
test/odr_no_uns2.cpp
Executable file → Normal file
0
test/odr_no_uns2.hpp
Executable file → Normal file
0
test/odr_no_uns2.hpp
Executable file → Normal file
0
test/std.cpp
Executable file → Normal file
0
test/std.cpp
Executable file → Normal file
0
test/template_dependent.cpp
Executable file → Normal file
0
test/template_dependent.cpp
Executable file → Normal file
0
test/template_enum.cpp
Executable file → Normal file
0
test/template_enum.cpp
Executable file → Normal file
0
test/template_int.cpp
Executable file → Normal file
0
test/template_int.cpp
Executable file → Normal file
0
test/template_multiword.cpp
Executable file → Normal file
0
test/template_multiword.cpp
Executable file → Normal file
0
test/template_tpl.cpp
Executable file → Normal file
0
test/template_tpl.cpp
Executable file → Normal file
0
test/template_type.cpp
Executable file → Normal file
0
test/template_type.cpp
Executable file → Normal file
0
test/test.hpp
Executable file → Normal file
0
test/test.hpp
Executable file → Normal file
0
test/type.cpp
Executable file → Normal file
0
test/type.cpp
Executable file → Normal file
Reference in New Issue
Block a user