Click here to Skip to main content
15,891,473 members
Articles / Programming Languages / C++

Obtaining the size of a C++ array using templates and other techniques (from C++11) - Part 1

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
22 Nov 2011CPOL4 min read 17.4K   2  
Recently I was helping somebody debug an issue around the use of swprintf_s.  The issue turned out to an Obi-Wan (off by one) error.  I don't tend use the likes of printf() very much instead preferring to use a std::stringstream if I need to format into a string.I'd assumed that the Microsoft's secu

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Team Leader
United Kingdom United Kingdom
My day job is mostly working in C++ with a bit of C#. I write a fair amount of command line based tools and really wish they could have a GUI front-end to them hence why I spend my spare time working with WPF.

I started a blog few years back but didn't do a lot with it. I've started describing some of the interesting programming things I come across on it. Please take a look.

Comments and Discussions