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
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@ namespace Faust {
s2.end_id = tmp.end_id;
}
void Slice::display()
void Slice::display() const
{
cout << "start_id:" << start_id << endl;
cout << "end_id:" << end_id << endl;
......
......@@ -9,8 +9,8 @@ namespace Faust
struct Slice
{
faust_unsigned_int start_id;
faust_unsigned_int end_id;
faust_unsigned_int start_id; // first index of slice
faust_unsigned_int end_id; // end index of slice (excluded)
Slice(faust_unsigned_int start_id, faust_unsigned_int end_id);
Slice(const Slice&);
......@@ -21,7 +21,7 @@ namespace Faust
void copy(const Slice& s);
Slice& operator=(const Slice&);
void display();
void display() const;
static void swap(Slice& s1, Slice& s2);
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