sp-mishra / mili

Automatically exported from code.google.com/p/mili
Boost Software License 1.0
0 stars 0 forks source link

bitwise_enums produces errors in xiosbase in VS2010 #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Include mili
2. Compile with VS2010
3. this will come out:
1> c:\program files (x86)\microsoft visual studio 
10.0\vc\include\xiosbase(558): error C2440: 'type cast' : cannot convert from 
'bitwise_enum<Enum>' to 'std::ios_base::fmtflags'
1>          with
1>          [
1>              Enum=std::_Iosb<int>::_Fmtflags
1>          ]
1>          No user-defined-conversion operator available that can perform this 
conversion, or the operator cannot be called

I expect to be able to compile using VS2010

Original issue reported on code.google.com by esteban....@gmail.com on 2 Aug 2011 at 7:22

GoogleCodeExporter commented 9 years ago
:( It's a matter of namespaces.
Please define MILI_NAMESPACE before including mili.h

Original comment by danielgutson@gmail.com on 2 Aug 2011 at 7:31

GoogleCodeExporter commented 9 years ago
Shouldn't that be defined by default for this compiler? (since it produces an 
error in std libraries), and maybe also adding a using there?

Original comment by esteban....@gmail.com on 2 Aug 2011 at 7:34

GoogleCodeExporter commented 9 years ago
ok

Original comment by danielgutson@gmail.com on 3 Aug 2011 at 4:58