Creating a boost::array

I'm working on Visual Studio 2010 and I've got a weird problem with this code:

#include <stdio.h>
#include <boost/asio.hpp>

int main()
{
    boost::array<char, 1024> test;
    return 0;
}

And this is what the compiler returns:

error C2079: 'test' uses undefined class 'boost::array< T,N >'

What is the problem? My version of Boost is. 1.54

Answers


boost::array is located in

#include <boost/array.hpp>

Need Your Help

Customized web gui for asterisk

php web asterisk pbx

May I ask what options I have to create a customized web UI for Asterisk using PHP or any other web platform. The app involves performing tasks like managing CDR, managing Users, managing

View Controller Not Displaying Details

ios iphone viewcontroller

I have an app here that asks for user input for 3 fields. After the 3 fields are entered, they are displayed in a view controller inside of a custom cell. You can add as many of these events as you...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.