The address of an object can be retrieved without using the address-of operator with the following function template:
template<typename T>
T * addressof(T & v)
{
return reinterpret_cast<T*>( &const_cast<char&>( reinterpret_cast<const volatile char &>( v ) ) );
}
나의 흔적 들.... 코드프로젝트...
WTL Icon Edit / 2004.10.28
Thunking MouseProc in IE add-in / 2004.11.03
Dev-studio like EditListBox Control / 2004.11.07
Mouse Gesture Add-in for MS DevStudio 6 / 2004.11.08
CAutoMate<>: a tiny utility class to run a mate function automatically in code block / 2004.11.29
FlashSelector - Block Flash selectively / 2006.03.05
Writing an exception safe code in generic way. / 2006.12.12
Fast C++ Delegate / 2006.03.27
Asynchronous Function Calls: Working with Win32 threads made easy / 2007.05.07
Fast C++ Delegate: Boost.Function 'drop-in' replacement and multicast / 2007.06.01
TitleTips Support for Edit, ListBox and ComboBox Controls / 2008.03.06
No comments:
Post a Comment