Mesh Array of double boost

I wanna create mesh Array using boost elements, that will be do the same that code below, but can accept numbers of double.
Please advice me any boost array that give me needed functionality. It will be great that advised element has the same argument list. I mean
// [base,stride,bound)
// [0,2,4)
P.S. Or may be there are any opportunity modify this boost::multi_array_types::index_range in order do make it accept double...
Many thanks in advance!

1>------ Build started: Project: HP_A.1_d_, Configuration: Debug Win32 ------
1> Main.cpp
1>c:\all my\с++\ha level 9\solution\level 9\hp_a.1_d_\main.cpp(15): warning C4244: 'argument' : conversion from 'double' to '__w64 int', possible loss of data
1>c:\all my\с++\ha level 9\solution\level 9\hp_a.1_d_\main.cpp(15): warning C4244: 'argument' : conversion from 'double' to '__w64 int', possible loss of data
1>c:\all my\с++\ha level 9\solution\level 9\hp_a.1_d_\main.cpp(18): warning C4244: 'argument' : conversion from 'double' to 'unsigned int', possible loss of data
1>c:\all my\с++\ha level 9\solution\level 9\hp_a.1_d_\main.cpp(20): warning C4244: 'argument' : conversion from 'double' to 'unsigned int', possible loss of data
1>c:\all my\с++\ha level 9\solution\level 9\hp_a.1_d_\main.cpp(20): warning C4244: 'argument' : conversion from 'double' to 'unsigned int', possible loss of data
1> HP_A.1_d_.vcxproj -> C:\all my\с++\HA level 9\Solution\Level 9\Debug\HP_A.1_d_.exe
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <boost\multi_array.hpp>
#include <iostream>
typedef boost::multi_array_types::index_range range;

using namespace std;

int main()
{ 
	// [base,stride,bound)
  // [0,2,4) 

  
  range a_range;
  a_range = range(0,23.2,3.4);
  double i=0;
  
  while (a_range[i] <=a_range.get_finish())
	 {
  cout  <<"for value: " <<  a_range[i]<< " => " << a_range[i]*4.5 << "\n";
  ++i;
	 }

  return 0;
}
Topic archived. No new replies allowed.