/* */ /* * Copyright (c) 2008 Broadcom Corporation * * All rights reserved. * * This source code contains proprietary, confidential and trade secret * information of Broadcom Corp, and except as provided by written agreement * with Broadcom Corp no part may be disclosed, distributed, reproduced, * transmitted, transcribed, stored in a retrieval system, adapted or * translated in any form or by any means electronic, mechanical, magnetic, * optical, chemical, manual or otherwise. */ #include "boost/format.hpp" #include #include #include class bcu { public: enum { BCU_ANON = 0x8000 }; }; template void bar(const T& x) { } template void foo1(const T& x) { bar(x); } template void foo2(const T& x) { bar(x); } int main() { enum mytype_e { ANON = 0x8000 }; foo1(0); foo1(bcu::BCU_ANON); // foo2(bcu::BCU_ANON); foo1(ANON); // foo2(ANON); std::cout << boost::format("%32x\n") % bcu::BCU_ANON; std::cout << boost::format("%32x\n") % ANON; std::cout << std::hex << std::showbase << bcu::BCU_ANON << std::endl; return 0; }