Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 39017bf2 authored by hhakim's avatar hhakim
Browse files

Add Slice assignment operator.

parent 8de9a16f
No related branches found
No related tags found
No related merge requests found
...@@ -63,4 +63,10 @@ namespace Faust { ...@@ -63,4 +63,10 @@ namespace Faust {
{ {
return end_id - start_id; return end_id - start_id;
} }
Slice& Slice::operator=(const Slice& s)
{
copy(s);
return *this;
}
} }
...@@ -19,6 +19,7 @@ namespace Faust ...@@ -19,6 +19,7 @@ namespace Faust
bool belong_to(faust_unsigned_int min_i, faust_unsigned_int max_i); bool belong_to(faust_unsigned_int min_i, faust_unsigned_int max_i);
bool belong_to(Slice& s); bool belong_to(Slice& s);
void copy(const Slice& s); void copy(const Slice& s);
Slice& operator=(const Slice&);
void display(); void display();
static void swap(Slice& s1, Slice& s2); static void swap(Slice& s1, Slice& s2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment