Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 7b380326 authored by hhakim's avatar hhakim
Browse files

Set Slice::display to const.

parent 8a5d5aeb
Branches
Tags
No related merge requests found
...@@ -53,7 +53,7 @@ namespace Faust { ...@@ -53,7 +53,7 @@ namespace Faust {
s2.end_id = tmp.end_id; s2.end_id = tmp.end_id;
} }
void Slice::display() void Slice::display() const
{ {
cout << "start_id:" << start_id << endl; cout << "start_id:" << start_id << endl;
cout << "end_id:" << end_id << endl; cout << "end_id:" << end_id << endl;
......
...@@ -9,8 +9,8 @@ namespace Faust ...@@ -9,8 +9,8 @@ namespace Faust
struct Slice struct Slice
{ {
faust_unsigned_int start_id; faust_unsigned_int start_id; // first index of slice
faust_unsigned_int end_id; faust_unsigned_int end_id; // end index of slice (excluded)
Slice(faust_unsigned_int start_id, faust_unsigned_int end_id); Slice(faust_unsigned_int start_id, faust_unsigned_int end_id);
Slice(const Slice&); Slice(const Slice&);
...@@ -21,7 +21,7 @@ namespace Faust ...@@ -21,7 +21,7 @@ namespace Faust
void copy(const Slice& s); void copy(const Slice& s);
Slice& operator=(const Slice&); Slice& operator=(const Slice&);
void display(); void display() const;
static void swap(Slice& s1, Slice& s2); static void swap(Slice& s1, Slice& s2);
size_t size() const; size_t size() const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment