octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #48673] add_hdf5_data fails for structs


From: Dmitry Messerman
Subject: [Octave-bug-tracker] [bug #48673] add_hdf5_data fails for structs
Date: Mon, 1 Aug 2016 13:29:11 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

URL:
  <http://savannah.gnu.org/bugs/?48673>

                 Summary: add_hdf5_data fails for structs
                 Project: GNU Octave
            Submitted by: mdmitry
            Submitted on: Mon 01 Aug 2016 04:29:09 PM IDT
                Category: Libraries
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Dmitry Messerman
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.2
        Operating System: GNU/Linux

    _______________________________________________________

Details:

The following code:

#include <octave/oct.h>
#include <octave/load-save.h>
#include <octave/oct-map.h>
#include <octave/ls-hdf5.h>

using namespace std;

typedef symbol_table::symbol_record OctaveSymbolRecord;

int main() {
    auto my_map = octave_map();
    my_map.setfield(string("mykey"),octave_value(0));
    hdf5_ofstream ofs("octave_bug.hdf5");
    write_header(ofs, LS_HDF5);
    do_save(ofs, OctaveSymbolRecord(0, "my_map", octave_value(my_map)),
LS_HDF5, false); 
    return 0;
}

Fails with the following error message:

error: full: invalid operation for %s type: wrong type argument 'scalar
struct'
error: octave_base_value::save_binary(): wrong type argument '<unknown type>'
error: save: error while writing 'my_map' to hdf5 file






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48673>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]